return: build for all
This commit is contained in:
33
.github/workflows/ci.yml
vendored
33
.github/workflows/ci.yml
vendored
@@ -15,15 +15,18 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# - platform: android
|
- platform: android
|
||||||
# os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
# targets: aab,apk
|
targets: apk
|
||||||
# target: android
|
|
||||||
|
|
||||||
# - platform: windows
|
# - platform: android-aab
|
||||||
# os: windows-latest
|
# os: ubuntu-latest
|
||||||
# aarch: amd64
|
# targets: aab
|
||||||
# targets: exe
|
|
||||||
|
- platform: windows
|
||||||
|
os: windows-latest
|
||||||
|
aarch: amd64
|
||||||
|
targets: exe
|
||||||
|
|
||||||
# Flutter does not support x86
|
# Flutter does not support x86
|
||||||
# - platform: windows
|
# - platform: windows
|
||||||
@@ -44,10 +47,10 @@ jobs:
|
|||||||
targets: dmg
|
targets: dmg
|
||||||
|
|
||||||
|
|
||||||
# - platform: linux
|
- platform: linux
|
||||||
# os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
# aarch: amd64
|
aarch: amd64
|
||||||
# targets: AppImage
|
targets: AppImage
|
||||||
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
@@ -78,7 +81,7 @@ jobs:
|
|||||||
npm install -g appdmg
|
npm install -g appdmg
|
||||||
|
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
if: matrix.platform == 'android'
|
if: startsWith(matrix.platform,'android')
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: "zulu"
|
distribution: "zulu"
|
||||||
@@ -95,7 +98,7 @@ jobs:
|
|||||||
mv appimagetool /usr/local/bin/
|
mv appimagetool /usr/local/bin/
|
||||||
|
|
||||||
- name: Setup Flutter Distributor
|
- name: Setup Flutter Distributor
|
||||||
if: matrix.platform != 'android'
|
if: ${{ !startsWith(matrix.platform,'android') }}
|
||||||
# shell: powershell
|
# shell: powershell
|
||||||
run: |
|
run: |
|
||||||
dart pub global activate flutter_distributor
|
dart pub global activate flutter_distributor
|
||||||
@@ -151,7 +154,9 @@ jobs:
|
|||||||
mv out/*arm64-v8a*.apk out/hiddify-android-arm64.apk || echo "no arm64 apk"
|
mv out/*arm64-v8a*.apk out/hiddify-android-arm64.apk || echo "no arm64 apk"
|
||||||
mv out/*armeabi-v7a*.apk out/hiddify-android-arm7.apk || echo "no arm7 apk"
|
mv out/*armeabi-v7a*.apk out/hiddify-android-arm7.apk || echo "no arm7 apk"
|
||||||
mv out/*x86_64*.apk out/hiddify-android-x86_64.apk || echo "no x64 apk"
|
mv out/*x86_64*.apk out/hiddify-android-x86_64.apk || echo "no x64 apk"
|
||||||
|
mv out/*.aab out/hiddify-android-playstore.aab || echo "no aab"
|
||||||
mv out/*.AppImage out/hiddify-linux-x64.AppImage || echo "no app image"
|
mv out/*.AppImage out/hiddify-linux-x64.AppImage || echo "no app image"
|
||||||
|
mv out/*.dmg out/hiddify-macos-universal.dmg || echo "no macos dmg"
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
3
Makefile
3
Makefile
@@ -16,6 +16,9 @@ translate:
|
|||||||
android-release:
|
android-release:
|
||||||
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
|
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
|
||||||
|
|
||||||
|
android-aab-release:
|
||||||
|
flutter build aab --target-platform android-arm,android-arm64,android-x64 --split-per-abi &&\
|
||||||
|
|
||||||
windows-release:
|
windows-release:
|
||||||
flutter_distributor package --platform windows --targets exe
|
flutter_distributor package --platform windows --targets exe
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user