Skip to content

[*]fix linux distbuild endless waiting #45

[*]fix linux distbuild endless waiting

[*]fix linux distbuild endless waiting #45

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
curl -o "C:\Program Files (x86)\Inno Setup 6\Languages\ChineseSimplified.isl" "https://raw.github.com/jrsoftware/issrc/main/Files/Languages/Unofficial/ChineseSimplified.isl"
- 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:
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: Pack DEB Installer
run: |-
flutter_distributor package --platform linux --target deb
- name: Upload Dist Artifact
uses: actions/upload-artifact@v4
with:
name: Linux Artifact(Dist)
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