chg: remove x86 builds since flutter does not support
This commit is contained in:
34
.github/workflows/ci.yml
vendored
34
.github/workflows/ci.yml
vendored
@@ -24,14 +24,15 @@ jobs:
|
|||||||
os: windows-latest
|
os: windows-latest
|
||||||
aarch: amd64
|
aarch: amd64
|
||||||
targets: exe
|
targets: exe
|
||||||
target: windows-x64
|
|
||||||
|
# Flutter does not support x86
|
||||||
# - platform: windows
|
# - platform: windows
|
||||||
# os: windows-latest
|
# os: windows-latest
|
||||||
# aarch: 386
|
# aarch: 386
|
||||||
# targets: exe
|
# targets: exe
|
||||||
# target: windows-x86
|
# target: windows-x86
|
||||||
|
|
||||||
|
# Flutter does not support x86
|
||||||
# - platform: linux
|
# - platform: linux
|
||||||
# os: ubuntu-latest
|
# os: ubuntu-latest
|
||||||
# aarch: 386
|
# aarch: 386
|
||||||
@@ -41,19 +42,13 @@ jobs:
|
|||||||
os: macos-11
|
os: macos-11
|
||||||
aarch: universal
|
aarch: universal
|
||||||
targets: dmg
|
targets: dmg
|
||||||
target: macos-universal
|
|
||||||
|
|
||||||
- platform: linux
|
- platform: linux
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
aarch: amd64
|
aarch: amd64
|
||||||
targets: AppImage
|
targets: AppImage
|
||||||
target: linux-x64
|
|
||||||
|
|
||||||
# - platform: linux
|
|
||||||
# os: ubuntu-latest
|
|
||||||
# aarch: 386
|
|
||||||
# targets: AppImage
|
|
||||||
# target: linux-x86
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
@@ -118,11 +113,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Get Libs ${{ matrix.platform }}
|
- name: Get Libs ${{ matrix.platform }}
|
||||||
run: |
|
run: |
|
||||||
make ${{ matrix.target }}-libs
|
make ${{ matrix.platform }}-libs
|
||||||
|
|
||||||
- name: Release ${{ matrix.target }}
|
- name: Release ${{ matrix.platform }}
|
||||||
run: |
|
run: |
|
||||||
make ${{ matrix.target }}-release
|
make ${{ matrix.platform }}-release
|
||||||
|
|
||||||
- name: Copy to out WINDOWS
|
- name: Copy to out WINDOWS
|
||||||
if: matrix.platform == 'windows'
|
if: matrix.platform == 'windows'
|
||||||
@@ -132,10 +127,13 @@ jobs:
|
|||||||
foreach ($EXT in $EXT_ARRAY) {
|
foreach ($EXT in $EXT_ARRAY) {
|
||||||
# Find all files with this extension in the current directory, and copy them to "out" directory
|
# Find all files with this extension in the current directory, and copy them to "out" directory
|
||||||
Get-ChildItem -Recurse -File -Filter "*setup.$EXT" | Copy-Item -Destination "out" -ErrorAction SilentlyContinue
|
Get-ChildItem -Recurse -File -Filter "*setup.$EXT" | Copy-Item -Destination "out" -ErrorAction SilentlyContinue
|
||||||
|
move out\*setup.$EXT out\${{ matrix.platform }}-x64-setup.$EXT
|
||||||
|
Get-ChildItem -Recurse -File -Filter "*.$EXT"
|
||||||
}
|
}
|
||||||
mkdir ${{ matrix.target }}-portable
|
|
||||||
copy build/windows/runner/Release ${{ matrix.target }}-portable
|
mkdir ${{ matrix.platform }}-portable
|
||||||
Compress-Archive ${{ matrix.target }}-portable out\${{ matrix.target }}-portable.zip
|
copy build/windows/runner/Release ${{ matrix.platform }}-portable
|
||||||
|
Compress-Archive ${{ matrix.platform }}-portable out\${{ matrix.platform }}-x64-portable.zip
|
||||||
|
|
||||||
- name: Copy to out unix
|
- name: Copy to out unix
|
||||||
if: matrix.platform != 'windows'
|
if: matrix.platform != 'windows'
|
||||||
@@ -148,6 +146,10 @@ jobs:
|
|||||||
# Find all files with this extension in SRC_DIR, and copy them to DST_DIR
|
# Find all files with this extension in SRC_DIR, and copy them to DST_DIR
|
||||||
find "." -type f -name "*.$EXT" -exec cp {} "out" \;
|
find "." -type f -name "*.$EXT" -exec cp {} "out" \;
|
||||||
done
|
done
|
||||||
|
mv out/*arm64-v8a*.apk out/hiddify-android-arm64.apk
|
||||||
|
mv out/*armeabi-v7a*.apk out/hiddify-android-arm7.apk
|
||||||
|
mv out/*x86_64*.apk out/hiddify-android-x86_64.apk
|
||||||
|
mv out/*.AppImage out/hiddify-linux-x64.AppImage
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
12
Makefile
12
Makefile
@@ -16,26 +16,26 @@ 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
|
||||||
|
|
||||||
windows-x64-release:
|
windows-release:
|
||||||
flutter_distributor package --platform windows --targets exe
|
flutter_distributor package --platform windows --targets exe
|
||||||
|
|
||||||
linux-x64-release:
|
linux-release:
|
||||||
flutter_distributor package --platform linux --targets appimage
|
flutter_distributor package --platform linux --targets appimage
|
||||||
|
|
||||||
macos-universal-release:
|
macos-release:
|
||||||
flutter build macos --release &&\
|
flutter build macos --release &&\
|
||||||
tree ./build/macos/Build &&\
|
tree ./build/macos/Build &&\
|
||||||
create-dmg --app-drop-link 600 185 "hiddify-amd64.dmg" ./build/macos/Build/Products/Release/hiddify-clash.app
|
create-dmg --app-drop-link 600 185 "hiddify-macos-universal.dmg" ./build/macos/Build/Products/Release/hiddify-clash.app
|
||||||
|
|
||||||
android-libs:
|
android-libs:
|
||||||
mkdir -p $(ANDROID_OUT)
|
mkdir -p $(ANDROID_OUT)
|
||||||
curl -L $(LIBS_DOWNLOAD_URL)/hiddify-libcore-android.aar.gz | gunzip > $(ANDROID_OUT)/libcore.aar
|
curl -L $(LIBS_DOWNLOAD_URL)/hiddify-libcore-android.aar.gz | gunzip > $(ANDROID_OUT)/libcore.aar
|
||||||
|
|
||||||
windows-x64-libs:
|
windows-libs:
|
||||||
mkdir -p $(DESKTOP_OUT)
|
mkdir -p $(DESKTOP_OUT)
|
||||||
curl -L $(LIBS_DOWNLOAD_URL)/hiddify-libcore-windows-amd64.dll.gz | gunzip > $(DESKTOP_OUT)/libcore.dll
|
curl -L $(LIBS_DOWNLOAD_URL)/hiddify-libcore-windows-amd64.dll.gz | gunzip > $(DESKTOP_OUT)/libcore.dll
|
||||||
|
|
||||||
linux-x64-libs:
|
linux-libs:
|
||||||
mkdir -p $(DESKTOP_OUT)
|
mkdir -p $(DESKTOP_OUT)
|
||||||
curl -L $(LIBS_DOWNLOAD_URL)/hiddify-libcore-linux-amd64.so.gz | gunzip > $(DESKTOP_OUT)/libcore.so
|
curl -L $(LIBS_DOWNLOAD_URL)/hiddify-libcore-linux-amd64.so.gz | gunzip > $(DESKTOP_OUT)/libcore.so
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user