new: make better ci and building applications
This commit is contained in:
48
Makefile
48
Makefile
@@ -9,8 +9,48 @@ gen:
|
||||
translate:
|
||||
dart run slang
|
||||
|
||||
android-libs: android-x64 android-arm android-arm64
|
||||
|
||||
android-release:
|
||||
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
|
||||
|
||||
windows-release:
|
||||
dart pub global activate flutter_distributor
|
||||
flutter_distributor package --platform windows --targets exe
|
||||
|
||||
|
||||
linux-release:
|
||||
dart pub global activate flutter_distributor
|
||||
which locate
|
||||
if [ $? =! 0 ];then
|
||||
sudo apt install locate
|
||||
fi
|
||||
which appimagetool
|
||||
if [ $? =! 0 ];then
|
||||
wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
|
||||
chmod +x appimagetool
|
||||
mv appimagetool /usr/local/bin/
|
||||
fi
|
||||
flutter_distributor package --platform linux --targets appimage
|
||||
|
||||
macos-release:
|
||||
dart pub global activate flutter_distributor
|
||||
npm install -g appdmg
|
||||
flutter_distributor package --platform macos --targets dmg
|
||||
|
||||
ios-release:
|
||||
flutter_distributor package --platform ios --targets ipa --build-export-options-plist ios/exportOptions.plist
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
android-libs: android-x64 android-arm android-arm64
|
||||
android-x64:
|
||||
cd core && env GOOS=android GOARCH=amd64 CC=$(NDK_BIN)/x86_64-linux-android21-clang $(GOBUILD) -o $(ANDROID_OUT)/x86_64/libclash.so # building android x64 clash libs
|
||||
|
||||
@@ -23,5 +63,7 @@ android-arm64:
|
||||
windows-libs:
|
||||
cd core && env GOOS=windows GOARCH=amd64 CC=x86_64-w64-mingw32-gcc $(GOBUILD) -o dist/libclash.dll # building windows clash libs
|
||||
|
||||
release-android:
|
||||
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user