From 7ae1caeaa062a3a3f63394157d4b674bd91f0380 Mon Sep 17 00:00:00 2001 From: igoogolx <27353191+igoogolx@users.noreply.github.com> Date: Wed, 25 Dec 2024 20:13:06 +0800 Subject: [PATCH] v1.24.1-beat.1 (#46) * feat: upgrade core * chore: v1.24.1-beat.1 * ci: use macos-13 for Intel build --- .github/workflows/build.yml | 9 ++++++++- pubspec.yaml | 2 +- scripts/init.dart | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fe0b2a8..9c9deaa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [windows-latest, macos-14] + os: [windows-latest, macos-14, macos-13] steps: - uses: actions/checkout@v4 @@ -33,6 +33,13 @@ jobs: dart run scripts/init.dart -a 'arm64' -s ${{ secrets.GITHUB_TOKEN }} flutter_distributor release --name ${{ matrix.os }} mv dist/${VERSION}/lux-${VERSION}+${VERSION}-macos.dmg dist/${VERSION}/lux-${VERSION}-arm64-macos.dmg + + - if: matrix.os == 'macos-13' + run: | + VERSION=${GITHUB_REF_NAME#v} + echo Version: $VERSION + echo "VERSION=$VERSION" >> $GITHUB_ENV + npm install -g appdmg dart run scripts/init.dart -a 'amd64' -s ${{ secrets.GITHUB_TOKEN }} flutter_distributor release --name ${{ matrix.os }} mv dist/${VERSION}/lux-${VERSION}+${VERSION}-macos.dmg dist/${VERSION}/lux-${VERSION}-amd64-macos.dmg diff --git a/pubspec.yaml b/pubspec.yaml index 1203c33..f0144ee 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.24.0 +version: 1.24.1-beat.1 environment: sdk: '>=3.0.6 <4.0.0' diff --git a/scripts/init.dart b/scripts/init.dart index 2ec349c..d842dc7 100644 --- a/scripts/init.dart +++ b/scripts/init.dart @@ -13,7 +13,7 @@ final assetsPath = final binDir = Directory(path.join(assetsPath, 'bin')); const rawCoreName = 'itun2socks'; -const rawCoreVersion = '1.22.1'; +const rawCoreVersion = '1.22.2'; Future downloadLatestCore(String arch, String token) async { final dio = Dio();