-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from lhx-666-cool/main
ubuntu自动打包deb和Windows自动打包zip
- Loading branch information
Showing
2 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Release for Ubuntu | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
|
||
jobs: | ||
build_apk: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install build-essential | ||
run: | | ||
sudo apt update | ||
sudo apt install build-essential | ||
sudo apt install ninja-build | ||
sudo apt install -y libgtk-3-dev | ||
- name: Install Flutter | ||
run: | | ||
git submodule update --init --recursive | ||
- name: Prepare Flutter Dependencies | ||
run: | | ||
.flutter/bin/flutter config --no-analytics | ||
.flutter/bin/flutter pub get | ||
- name: Build APP | ||
run: | | ||
.flutter/bin/flutter build linux --release | ||
.flutter/bin/dart pub global activate flutter_to_debian | ||
export PATH="$PATH":"$HOME/.pub-cache/bin":".flutter/bin/" | ||
flutter_to_debian | ||
- name: upload result | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: Traintime_PDA_Ubuntu | ||
path: ${{ github.workspace }}/build/linux/x64/release/debian/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Release for Windows | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
- run: flutter create --platforms=windows,macos,linux . | ||
- run: flutter build windows --release | ||
|
||
- name: upload result | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: Traintime_PDA_Windows | ||
path: ${{ github.workspace }}/build/windows/x64/runner/Release/ |