hard coding
This commit is contained in:
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@@ -32,6 +32,11 @@ jobs:
|
|||||||
# os: ubuntu-latest
|
# os: ubuntu-latest
|
||||||
# aarch: 386
|
# aarch: 386
|
||||||
# targets: appimage
|
# targets: appimage
|
||||||
|
|
||||||
|
# - platform: macos
|
||||||
|
# os: macos-11
|
||||||
|
# aarch: amd64
|
||||||
|
# targets: dmg
|
||||||
- platform: linux
|
- platform: linux
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
aarch: amd64
|
aarch: amd64
|
||||||
@@ -55,7 +60,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
flutter-version: '3.10.6'
|
flutter-version: '3.10.6'
|
||||||
channel: 'stable'
|
channel: 'stable'
|
||||||
|
cache: true
|
||||||
|
|
||||||
|
- name: Build macos dmg
|
||||||
|
if: matrix.platform == 'macos'
|
||||||
|
run: |
|
||||||
|
brew install create-dmg tree
|
||||||
- name: Setup Java
|
- name: Setup Java
|
||||||
if: matrix.platform == 'android'
|
if: matrix.platform == 'android'
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
@@ -74,7 +84,7 @@ jobs:
|
|||||||
mv appimagetool /usr/local/bin/
|
mv appimagetool /usr/local/bin/
|
||||||
|
|
||||||
- name: Setup Flutter Distributor
|
- name: Setup Flutter Distributor
|
||||||
if: matrix.platform == 'windows' || matrix.platform == 'linux'
|
if: matrix.platform != 'android'
|
||||||
# shell: powershell
|
# shell: powershell
|
||||||
run: |
|
run: |
|
||||||
dart pub global activate flutter_distributor
|
dart pub global activate flutter_distributor
|
||||||
|
|||||||
10
Makefile
10
Makefile
@@ -19,8 +19,13 @@ windows-release:
|
|||||||
flutter_distributor package --platform windows --targets exe
|
flutter_distributor package --platform windows --targets exe
|
||||||
|
|
||||||
linux-release:
|
linux-release:
|
||||||
|
mkdir -p /home/runner/work/hiddify-next/hiddify-next/dist/0.1.0/hiddify-0.1.0+0.1.0-linux_appimage/hiddify.AppDir/hiddify.png &&\
|
||||||
|
cp ./assets/images/hiddify.png /home/runner/work/hiddify-next/hiddify-next/dist/0.1.0/hiddify-0.1.0+0.1.0-linux_appimage/hiddify.AppDir/hiddify.png &&\
|
||||||
flutter_distributor package --platform linux --targets appimage
|
flutter_distributor package --platform linux --targets appimage
|
||||||
|
macos-realase:
|
||||||
|
flutter build macos --release &&\
|
||||||
|
tree ./build/macos/Build &&\
|
||||||
|
create-dmg --app-drop-link 600 185 "hiddify-amd64.dmg" ./build/macos/Build/Products/Release/hiddify-clash.app
|
||||||
android-libs:
|
android-libs:
|
||||||
mkdir -p $(ANDROID_OUT)/x86_64 $(ANDROID_OUT)/arm64-v8a/ $(ANDROID_OUT)/armeabi-v7a/ &&\
|
mkdir -p $(ANDROID_OUT)/x86_64 $(ANDROID_OUT)/arm64-v8a/ $(ANDROID_OUT)/armeabi-v7a/ &&\
|
||||||
curl -L https://github.com/hiddify/hiddify-libclash/releases/latest/download/hiddify-clashlib-android-amd64.so.gz | gunzip > $(ANDROID_OUT)/x86_64/libclash.so &&\
|
curl -L https://github.com/hiddify/hiddify-libclash/releases/latest/download/hiddify-clashlib-android-amd64.so.gz | gunzip > $(ANDROID_OUT)/x86_64/libclash.so &&\
|
||||||
@@ -35,6 +40,9 @@ linux-libs:
|
|||||||
mkdir -p $(DESKTOP_OUT)/ &&\
|
mkdir -p $(DESKTOP_OUT)/ &&\
|
||||||
curl -L https://github.com/hiddify/hiddify-libclash/releases/latest/download/hiddify-clashlib-linux-amd64.so.gz | gunzip > $(DESKTOP_OUT)/libclash.so
|
curl -L https://github.com/hiddify/hiddify-libclash/releases/latest/download/hiddify-clashlib-linux-amd64.so.gz | gunzip > $(DESKTOP_OUT)/libclash.so
|
||||||
|
|
||||||
|
macos-libs:
|
||||||
|
mkdir -p $(DESKTOP_OUT)/ &&\
|
||||||
|
curl -L https://github.com/hiddify/hiddify-libclash/releases/latest/download/hiddify-clashlib-macos-amd64.so.gz | gunzip > $(DESKTOP_OUT)/libclash.dylib
|
||||||
|
|
||||||
build-android-libs:
|
build-android-libs:
|
||||||
cd core &&\
|
cd core &&\
|
||||||
|
|||||||
Reference in New Issue
Block a user