mirror of https://github.com/Xhofe/alist
💚 change build platform
parent
8ed0afe80d
commit
106c1d069c
|
@ -10,7 +10,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform: [ubuntu-latest]
|
platform: [macos-latest]
|
||||||
go-version: [1.17]
|
go-version: [1.17]
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
|
@ -32,7 +32,7 @@ jobs:
|
||||||
|
|
||||||
- name: Install upx
|
- name: Install upx
|
||||||
run: |
|
run: |
|
||||||
sudo apt install upx
|
brew install upx
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -9,7 +9,7 @@ jobs:
|
||||||
release:
|
release:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform: [ubuntu-latest]
|
platform: [macos-latest]
|
||||||
go-version: [1.17]
|
go-version: [1.17]
|
||||||
name: Release
|
name: Release
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
|
@ -29,7 +29,7 @@ jobs:
|
||||||
|
|
||||||
- name: Install upx
|
- name: Install upx
|
||||||
run: |
|
run: |
|
||||||
sudo apt install upx
|
brew install upx
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
|
|
4
build.sh
4
build.sh
|
@ -77,9 +77,7 @@ BUILD() {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
cd build
|
cd build
|
||||||
for i in $(find . -type f -name "$appName-*"); do
|
upx -9 ./*
|
||||||
upx -9 -o $i-upx $i
|
|
||||||
done
|
|
||||||
find . -type f -print0 | xargs -0 md5sum >md5.txt
|
find . -type f -print0 | xargs -0 md5sum >md5.txt
|
||||||
cat md5.txt
|
cat md5.txt
|
||||||
cd ..
|
cd ..
|
||||||
|
|
Loading…
Reference in New Issue