mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 13:50:12 +08:00
ci: add legacy macos build
This commit is contained in:
parent
7ef40c4961
commit
a9efee57a3
25
.github/workflows/build.yml
vendored
25
.github/workflows/build.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
|||||||
go_version: "1.25.0"
|
go_version: "1.25.0"
|
||||||
- cross_os: darwin
|
- cross_os: darwin
|
||||||
cross_arch: amd64
|
cross_arch: amd64
|
||||||
go_version: "1.25.0"
|
go_version: "1.24.7"
|
||||||
- cross_os: darwin
|
- cross_os: darwin
|
||||||
cross_arch: arm64
|
cross_arch: arm64
|
||||||
go_version: "1.25.0"
|
go_version: "1.25.0"
|
||||||
@ -106,6 +106,9 @@ jobs:
|
|||||||
- platform: macos-latest
|
- platform: macos-latest
|
||||||
qt_version: "6.9.0"
|
qt_version: "6.9.0"
|
||||||
target: arm64
|
target: arm64
|
||||||
|
- platform: macos-latest
|
||||||
|
qt_version: "6.4.3"
|
||||||
|
target: x86_64
|
||||||
- platform: windows-latest
|
- platform: windows-latest
|
||||||
qt_version: "6.2.12"
|
qt_version: "6.2.12"
|
||||||
target: x86_64
|
target: x86_64
|
||||||
@ -203,7 +206,7 @@ jobs:
|
|||||||
./script/deploy_linux64.sh
|
./script/deploy_linux64.sh
|
||||||
- name: macOS - Generate MakeFile and Build
|
- name: macOS - Generate MakeFile and Build
|
||||||
shell: bash
|
shell: bash
|
||||||
if: matrix.platform == 'macos-latest'
|
if: matrix.platform == 'macos-latest' && matrix.qt_version != '6.4.3'
|
||||||
run: |
|
run: |
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
@ -212,6 +215,17 @@ jobs:
|
|||||||
ninja
|
ninja
|
||||||
cd ..
|
cd ..
|
||||||
./script/deploy_macos.sh ${{ matrix.target }}
|
./script/deploy_macos.sh ${{ matrix.target }}
|
||||||
|
- name: Legacy macOS - Generate MakeFile and Build
|
||||||
|
shell: bash
|
||||||
|
if: matrix.platform == 'macos-latest' && matrix.qt_version == '6.4.3'
|
||||||
|
run: |
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
curl -fLso srslist.h "https://raw.githubusercontent.com/throneproj/routeprofiles/rule-set/srslist.h"
|
||||||
|
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DNKR_PACKAGE_MACOS=1 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 -DCMAKE_OSX_ARCHITECTURES=${{ matrix.target }} ..
|
||||||
|
ninja
|
||||||
|
cd ..
|
||||||
|
./script/deploy_macos.sh
|
||||||
# ========================================================================================================= Deployments
|
# ========================================================================================================= Deployments
|
||||||
- name: Tar files
|
- name: Tar files
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -283,6 +297,12 @@ jobs:
|
|||||||
zip -9 --symlinks -r $version_standalone-macos-amd64.zip Throne
|
zip -9 --symlinks -r $version_standalone-macos-amd64.zip Throne
|
||||||
rm -rf macos-amd64
|
rm -rf macos-amd64
|
||||||
rm -rf Throne
|
rm -rf Throne
|
||||||
|
####
|
||||||
|
mkdir Throne
|
||||||
|
mv macoslegacy-amd64/Throne.app Throne/Throne.app
|
||||||
|
zip -9 --symlinks -r $version_standalone-macoslegacy-amd64.zip Throne
|
||||||
|
rm -rf macoslegacy-amd64
|
||||||
|
rm -rf Throne
|
||||||
- name: Clean Up
|
- name: Clean Up
|
||||||
run: |
|
run: |
|
||||||
cd deployment
|
cd deployment
|
||||||
@ -294,6 +314,7 @@ jobs:
|
|||||||
rm -rf windowslegacy64
|
rm -rf windowslegacy64
|
||||||
rm -rf macos-amd64
|
rm -rf macos-amd64
|
||||||
rm -rf macos-arm64
|
rm -rf macos-arm64
|
||||||
|
rm -rf macoslegacy-amd64
|
||||||
rm -rf *.pdb
|
rm -rf *.pdb
|
||||||
- name: Uploading Artifact
|
- name: Uploading Artifact
|
||||||
uses: actions/upload-artifact@v4.6.2
|
uses: actions/upload-artifact@v4.6.2
|
||||||
|
|||||||
@ -1,11 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
source script/env_deploy.sh
|
|
||||||
DEST=$DEPLOYMENT/public_res
|
|
||||||
rm -rf $DEST
|
|
||||||
mkdir -p $DEST
|
|
||||||
|
|
||||||
#### Download geodata ####
|
|
||||||
curl -fLso $DEST/geoip.db "https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db"
|
|
||||||
curl -fLso $DEST/geosite.db "https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db"
|
|
||||||
@ -1,14 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
source script/env_deploy.sh
|
||||||
if [[ $1 == 'arm64' ]]; then
|
if [[ $1 == 'arm64' ]]; then
|
||||||
ARCH="arm64"
|
ARCH="arm64"
|
||||||
|
DEST=$DEPLOYMENT/macos-arm64
|
||||||
else
|
else
|
||||||
ARCH="amd64"
|
ARCH="amd64"
|
||||||
|
if [[ $1 == 'x86_64' ]]; then
|
||||||
|
DEST=$DEPLOYMENT/macos-amd64
|
||||||
|
else
|
||||||
|
DEST=$DEPLOYMENT/macoslegacy-amd64
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source script/env_deploy.sh
|
|
||||||
DEST=$DEPLOYMENT/macos-$ARCH
|
|
||||||
rm -rf $DEST
|
rm -rf $DEST
|
||||||
mkdir -p $DEST
|
mkdir -p $DEST
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user