Skip to content

Commit

Permalink
Merge pull request #22 from lhx-666-cool/main
Browse files Browse the repository at this point in the history
ubuntu自动打包deb和Windows自动打包zip
  • Loading branch information
BenderBlog authored Feb 21, 2024
2 parents ca82fda + 6609966 commit f8d2b5e
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/Release for Ubuntu.yml
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/
23 changes: 23 additions & 0 deletions .github/workflows/Release for Windows.yml
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/

0 comments on commit f8d2b5e

Please sign in to comment.