mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-04 07:09:06 +00:00
Specify architecture for Linux and macOS releases
PR #5526 <https://github.com/Genymobile/scrcpy/pull/5526> Co-authored-by: Genxster1998 <ck.2229.ck@gmail.com>
This commit is contained in:
parent
acddd811bf
commit
618a978f5b
5 changed files with 52 additions and 38 deletions
64
.github/workflows/release.yml
vendored
64
.github/workflows/release.yml
vendored
|
@ -82,7 +82,7 @@ jobs:
|
||||||
- name: Test
|
- name: Test
|
||||||
run: release/test_client.sh
|
run: release/test_client.sh
|
||||||
|
|
||||||
build-linux:
|
build-linux-x86_64:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
@ -96,12 +96,12 @@ jobs:
|
||||||
libv4l-dev
|
libv4l-dev
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: release/build_linux.sh
|
run: release/build_linux.sh x86_64
|
||||||
|
|
||||||
# upload-artifact does not preserve permissions
|
# upload-artifact does not preserve permissions
|
||||||
- name: Tar
|
- name: Tar
|
||||||
run: |
|
run: |
|
||||||
cd release/work/build-linux
|
cd release/work/build-linux-x86_64
|
||||||
mkdir dist-tar
|
mkdir dist-tar
|
||||||
cd dist-tar
|
cd dist-tar
|
||||||
tar -C .. -cvf dist.tar.gz dist/
|
tar -C .. -cvf dist.tar.gz dist/
|
||||||
|
@ -109,8 +109,8 @@ jobs:
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build-linux-intermediate
|
name: build-linux-x86_64-intermediate
|
||||||
path: release/work/build-linux/dist-tar/
|
path: release/work/build-linux-x86_64/dist-tar/
|
||||||
|
|
||||||
build-win32:
|
build-win32:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -178,7 +178,7 @@ jobs:
|
||||||
name: build-win64-intermediate
|
name: build-win64-intermediate
|
||||||
path: release/work/build-win64/dist-tar/
|
path: release/work/build-win64/dist-tar/
|
||||||
|
|
||||||
build-macos:
|
build-macos-aarch64:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
@ -190,12 +190,12 @@ jobs:
|
||||||
libtool
|
libtool
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: release/build_macos.sh
|
run: release/build_macos.sh aarch64
|
||||||
|
|
||||||
# upload-artifact does not preserve permissions
|
# upload-artifact does not preserve permissions
|
||||||
- name: Tar
|
- name: Tar
|
||||||
run: |
|
run: |
|
||||||
cd release/work/build-macos
|
cd release/work/build-macos-aarch64
|
||||||
mkdir dist-tar
|
mkdir dist-tar
|
||||||
cd dist-tar
|
cd dist-tar
|
||||||
tar -C .. -cvf dist.tar.gz dist/
|
tar -C .. -cvf dist.tar.gz dist/
|
||||||
|
@ -203,13 +203,13 @@ jobs:
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build-macos-intermediate
|
name: build-macos-aarch64-intermediate
|
||||||
path: release/work/build-macos/dist-tar/
|
path: release/work/build-macos-aarch64/dist-tar/
|
||||||
|
|
||||||
package-linux:
|
package-linux-x86_64:
|
||||||
needs:
|
needs:
|
||||||
- build-scrcpy-server
|
- build-scrcpy-server
|
||||||
- build-linux
|
- build-linux-x86_64
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
@ -221,25 +221,25 @@ jobs:
|
||||||
name: scrcpy-server
|
name: scrcpy-server
|
||||||
path: release/work/build-server/server/
|
path: release/work/build-server/server/
|
||||||
|
|
||||||
- name: Download build-linux
|
- name: Download build-linux-x86_64
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build-linux-intermediate
|
name: build-linux-x86_64-intermediate
|
||||||
path: release/work/build-linux/dist-tar/
|
path: release/work/build-linux-x86_64/dist-tar/
|
||||||
|
|
||||||
# upload-artifact does not preserve permissions
|
# upload-artifact does not preserve permissions
|
||||||
- name: Detar
|
- name: Detar
|
||||||
run: |
|
run: |
|
||||||
cd release/work/build-linux
|
cd release/work/build-linux-x86_64
|
||||||
tar xf dist-tar/dist.tar.gz
|
tar xf dist-tar/dist.tar.gz
|
||||||
|
|
||||||
- name: Package
|
- name: Package
|
||||||
run: release/package_client.sh linux tar.gz
|
run: release/package_client.sh linux-x86_64 tar.gz
|
||||||
|
|
||||||
- name: Upload release
|
- name: Upload release
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: release-linux
|
name: release-linux-x86_64
|
||||||
path: release/output/
|
path: release/output/
|
||||||
|
|
||||||
package-win32:
|
package-win32:
|
||||||
|
@ -314,10 +314,10 @@ jobs:
|
||||||
name: release-win64
|
name: release-win64
|
||||||
path: release/output
|
path: release/output
|
||||||
|
|
||||||
package-macos:
|
package-macos-aarch64:
|
||||||
needs:
|
needs:
|
||||||
- build-scrcpy-server
|
- build-scrcpy-server
|
||||||
- build-macos
|
- build-macos-aarch64
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
@ -329,34 +329,34 @@ jobs:
|
||||||
name: scrcpy-server
|
name: scrcpy-server
|
||||||
path: release/work/build-server/server/
|
path: release/work/build-server/server/
|
||||||
|
|
||||||
- name: Download build-macos
|
- name: Download build-macos-aarch64
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build-macos-intermediate
|
name: build-macos-aarch64-intermediate
|
||||||
path: release/work/build-macos/dist-tar/
|
path: release/work/build-macos-aarch64/dist-tar/
|
||||||
|
|
||||||
# upload-artifact does not preserve permissions
|
# upload-artifact does not preserve permissions
|
||||||
- name: Detar
|
- name: Detar
|
||||||
run: |
|
run: |
|
||||||
cd release/work/build-macos
|
cd release/work/build-macos-aarch64
|
||||||
tar xf dist-tar/dist.tar.gz
|
tar xf dist-tar/dist.tar.gz
|
||||||
|
|
||||||
- name: Package
|
- name: Package
|
||||||
run: release/package_client.sh macos tar.gz
|
run: release/package_client.sh macos-aarch64 tar.gz
|
||||||
|
|
||||||
- name: Upload release
|
- name: Upload release
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: release-macos
|
name: release-macos-aarch64
|
||||||
path: release/output/
|
path: release/output/
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs:
|
needs:
|
||||||
- build-scrcpy-server
|
- build-scrcpy-server
|
||||||
- package-linux
|
- package-linux-x86_64
|
||||||
- package-win32
|
- package-win32
|
||||||
- package-win64
|
- package-win64
|
||||||
- package-macos
|
- package-macos-aarch64
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
@ -368,10 +368,10 @@ jobs:
|
||||||
name: scrcpy-server
|
name: scrcpy-server
|
||||||
path: release/work/build-server/server/
|
path: release/work/build-server/server/
|
||||||
|
|
||||||
- name: Download release-linux
|
- name: Download release-linux-x86_64
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: release-linux
|
name: release-linux-x86_64
|
||||||
path: release/output/
|
path: release/output/
|
||||||
|
|
||||||
- name: Download release-win32
|
- name: Download release-win32
|
||||||
|
@ -386,10 +386,10 @@ jobs:
|
||||||
name: release-win64
|
name: release-win64
|
||||||
path: release/output/
|
path: release/output/
|
||||||
|
|
||||||
- name: Download release-macos
|
- name: Download release-macos-aarch64
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: release-macos
|
name: release-macos-aarch64
|
||||||
path: release/output/
|
path: release/output/
|
||||||
|
|
||||||
- name: Package server
|
- name: Package server
|
||||||
|
|
|
@ -4,7 +4,14 @@ cd "$(dirname ${BASH_SOURCE[0]})"
|
||||||
. build_common
|
. build_common
|
||||||
cd .. # root project dir
|
cd .. # root project dir
|
||||||
|
|
||||||
LINUX_BUILD_DIR="$WORK_DIR/build-linux"
|
if [[ $# != 1 ]]
|
||||||
|
then
|
||||||
|
echo "Syntax: $0 <arch>" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
ARCH="$1"
|
||||||
|
LINUX_BUILD_DIR="$WORK_DIR/build-linux-$ARCH"
|
||||||
|
|
||||||
app/deps/adb_linux.sh
|
app/deps/adb_linux.sh
|
||||||
app/deps/sdl.sh linux native static
|
app/deps/sdl.sh linux native static
|
||||||
|
|
|
@ -4,7 +4,14 @@ cd "$(dirname ${BASH_SOURCE[0]})"
|
||||||
. build_common
|
. build_common
|
||||||
cd .. # root project dir
|
cd .. # root project dir
|
||||||
|
|
||||||
MACOS_BUILD_DIR="$WORK_DIR/build-macos"
|
if [[ $# != 1 ]]
|
||||||
|
then
|
||||||
|
echo "Syntax: $0 <arch>" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
ARCH="$1"
|
||||||
|
MACOS_BUILD_DIR="$WORK_DIR/build-macos-$ARCH"
|
||||||
|
|
||||||
app/deps/adb_macos.sh
|
app/deps/adb_macos.sh
|
||||||
app/deps/sdl.sh macos native static
|
app/deps/sdl.sh macos native static
|
||||||
|
|
|
@ -5,9 +5,9 @@ cd "$(dirname ${BASH_SOURCE[0]})"
|
||||||
|
|
||||||
cd "$OUTPUT_DIR"
|
cd "$OUTPUT_DIR"
|
||||||
sha256sum "scrcpy-server-$VERSION" \
|
sha256sum "scrcpy-server-$VERSION" \
|
||||||
"scrcpy-linux-$VERSION.tar.gz" \
|
"scrcpy-linux-x86_64-$VERSION.tar.gz" \
|
||||||
"scrcpy-win32-$VERSION.zip" \
|
"scrcpy-win32-$VERSION.zip" \
|
||||||
"scrcpy-win64-$VERSION.zip" \
|
"scrcpy-win64-$VERSION.zip" \
|
||||||
"scrcpy-macos-$VERSION.tar.gz" \
|
"scrcpy-macos-aarch64-$VERSION.tar.gz" \
|
||||||
| tee SHA256SUMS.txt
|
| tee SHA256SUMS.txt
|
||||||
echo "Release checksums generated in $PWD/SHA256SUMS.txt"
|
echo "Release checksums generated in $PWD/SHA256SUMS.txt"
|
||||||
|
|
|
@ -12,12 +12,12 @@ rm -rf output
|
||||||
./build_server.sh
|
./build_server.sh
|
||||||
./build_windows.sh 32
|
./build_windows.sh 32
|
||||||
./build_windows.sh 64
|
./build_windows.sh 64
|
||||||
./build_linux.sh
|
./build_linux.sh x86_64
|
||||||
|
|
||||||
./package_server.sh
|
./package_server.sh
|
||||||
./package_client.sh win32 zip
|
./package_client.sh win32 zip
|
||||||
./package_client.sh win64 zip
|
./package_client.sh win64 zip
|
||||||
./package_client.sh linux tar.gz
|
./package_client.sh linux-x86_64 tar.gz
|
||||||
|
|
||||||
./generate_checksums.sh
|
./generate_checksums.sh
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue