Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit f05d674
Author: 孙娇 <[email protected]>
Date:   Thu Feb 29 14:30:12 2024 +0800

    add runnername

commit 77bee3a
Author: 孙娇 <[email protected]>
Date:   Thu Feb 29 10:55:17 2024 +0800

    Update main.yml

commit 604fe96
Author: 孙娇 <[email protected]>
Date:   Thu Feb 29 10:53:19 2024 +0800

    update java version

commit 68f3052
Author: 孙娇 <[email protected]>
Date:   Thu Feb 29 10:44:04 2024 +0800

    Update main.yml

commit c870507
Author: 孙娇 <[email protected]>
Date:   Thu Feb 29 10:39:40 2024 +0800

    fix linux update mac

commit c888d90
Author: 孙娇 <[email protected]>
Date:   Thu Feb 29 10:37:33 2024 +0800

    Update main.yml
  • Loading branch information
sun-jiao committed Feb 29, 2024
1 parent 0b45aba commit 2a0e33e
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
with:
channel: 'stable'
architecture: x64
flutter-version: '3.19.1'
- name: Update dependencies
run: sudo apt-get update
- name: Install dependencies
Expand All @@ -38,14 +37,20 @@ jobs:
with:
name: Renamer-${{github.ref_name}}-${{ steps.vars.outputs.sha_short }}-appimage
path: Renamer-x86_64.AppImage
- uses: actions/setup-java@v1
- uses: actions/setup-java@v2
with:
java-version: '12.x'
distribution: 'zulu'
java-version: '17.x'
- name: decode key base64
run: echo $KEYSTORE_BASE64 | base64 -di > ./android/app/renamer.jks
env:
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
- run: flutter build apk --release
- name: Build android
run: |
flutter build apk --release
flutter build apk --release --split-per-abi
flutter build appbundle --release
mv build/app/outputs/bundle/release/app-release.aab build/app/outputs/flutter-apk/
env:
KEYSTORE: renamer.jks
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
Expand All @@ -54,8 +59,8 @@ jobs:
- name: Android Release
uses: actions/upload-artifact@v1
with:
name: renamer-${{github.ref_name}}-${{ steps.vars.outputs.sha_short }}-release-apk
path: build/app/outputs/apk/release/app-release.apk
name: renamer-${{github.ref_name}}-${{ steps.vars.outputs.sha_short }}-android
path: build/app/outputs/flutter-apk


build-and-release-windows:
Expand All @@ -69,22 +74,21 @@ jobs:
with:
channel: 'stable'
architecture: x64
flutter-version: '3.19.1'
- name: Install project dependencies
run: flutter pub get
- name: Enable windows build
run: flutter config --enable-windows-desktop
- name: Build artifacts
run: flutter build windows --release
- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
- name: install evb
run: npm install enigmavirtualbox -g
- name: build single exe file
run: enigmavirtualbox cli ".\evb\renamer.evb"
- name: Set outputs
- name: Set output
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Windows Release
Expand All @@ -101,8 +105,7 @@ jobs:
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
architecture: x64
flutter-version: '3.19.1'
architecture: arm64
- name: Install project dependencies
run: flutter pub get
- name: Enable macOS build
Expand Down

0 comments on commit 2a0e33e

Please sign in to comment.