Skip to content

[*]Fix windows installer build isl #54

[*]Fix windows installer build isl

[*]Fix windows installer build isl #54

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Build
on:
push:
branches: [ "main" ]
jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Install Dependencies
run: flutter pub get
- name: Build Application
run: flutter build windows --release
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: Windows Artifact(Build)
path: build
dist-windows:
needs:
- build-windows
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Install Dependencies
run: dart pub global activate flutter_distributor
- name: Setup Inno Setup 6
shell: pwsh
run: |-
./asset/is.exe /VERYSLIENT
Copy-Item "./asset/ChineseSimplified.isl" -Destination "C:\Program Files (x86)\Inno Setup 6\Languages"
- name: Pack EXE Installer
run: |-
flutter_distributor package --platform windows --target exe
- name: Upload Dist Artifact
uses: actions/upload-artifact@v4
with:
name: Windows Artifact(Dist)
path: dist
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Install Dependencies
run: |-
flutter pub get
sudo apt-get install clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
- name: Build Application
run: flutter build linux --release
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: Linux Artifact(Build)
path: build
dist-linux-appimage:
needs:
- build-linux
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Install Dependencies
run: |-
flutter pub get
sudo apt-get install clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
dart pub global activate flutter_distributor
- name: Setup AppImageTool
run: |-
curl -o appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
sudo chmod a+x appimagetool
sudo mv appimagetool /usr/local/bin/
- name: Pack AppImage Installer
run: |-
flutter_distributor package --platform linux --target appimage
- name: Upload Dist Artifact
uses: actions/upload-artifact@v4
with:
name: Linux Artifact(Dist - AppImage)
path: dist/*
dist-linux-deb:
needs:
- build-linux
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Install Dependencies
run: |-
flutter pub get
sudo apt-get install clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
dart pub global activate flutter_distributor
- name: Pack DEB Installer
run: |-
echo "Coming"
#flutter_distributor package --platform linux --target deb
- name: Upload Dist Artifact
uses: actions/upload-artifact@v4
with:
name: Linux Artifact(Dist - DEB)
path: dist
build-macos:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Install Dependencies
run: flutter pub get
- name: Build Application
run: flutter build macos --release
- uses: actions/upload-artifact@v4
with:
name: MacOS Artifact(Build)
path: build
dist-macos:
needs:
- build-macos
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 21
- name: Install Dependencies
run: |-
flutter pub get
npm install -g appdmg
dart pub global activate flutter_distributor
- name: Pack DMG Installer
run: |-
flutter_distributor package --platform macos --target dmg
- name: Upload Dist Artifact
uses: actions/upload-artifact@v4
with:
name: MacOS Artifact(Dist)
path: dist