-
Notifications
You must be signed in to change notification settings - Fork 0
/
mkrelease.sh
executable file
·40 lines (30 loc) · 1.8 KB
/
mkrelease.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
mkdir -p release
## Linux
upx -q --best ./target/x86_64-unknown-linux-musl/release/qs-lite
echo -n "[*] Packaging x86_64-unknown-linux-musl binary -> "
tar czvf "./release/qs-netcat_linux_amd64.tar.gz" "./target/x86_64-unknown-linux-musl/release/qs-lite"
upx -q --best ./target/i686-unknown-linux-musl/release/qs-lite
echo -n "[*] Packaging i686-linux-musl binary -> "
tar czvf "./release/qs-netcat_linux_386.tar.gz" "./target/i686-unknown-linux-musl/release/qs-lite"
upx -q --best ./target/aarch64-unknown-linux-musl/release/qs-lite
echo -n "[*] Packaging aarch64-unknown-linux-musl binary -> "
tar czvf "./release/qs-netcat_linux_arm64.tar.gz" "./target/aarch64-unknown-linux-musl/release/qs-lite"
## Windows
upx -q --best ./target/x86_64-pc-windows-gnu/release/qs-lite.exe
echo -n "[*] Packaging x86_64-pc-windows-gnu binary -> "
tar czvf "./release/qs-netcat_windows_amd64.tar.gz" "./target/x86_64-pc-windows-gnu/release/qs-lite.exe"
upx -q --best ./target/i686-pc-windows-gnu/release/qs-lite.exe
echo -n "[*] Packaging i686-pc-windows-gnu binary -> "
tar czvf "./release/qs-netcat_windows_386.tar.gz" "./target/i686-pc-windows-gnu/release/qs-lite.exe"
## Android
upx -q --best ./target/aarch64-linux-android/release/qs-lite
echo -n "[*] Packaging aarch64-linux-android binary -> "
tar czvf "./release/qs-netcat_android_arm64.tar.gz" "./target/aarch64-linux-android/release/qs-lite"
upx -q --best ./target/x86_64-linux-android/release/qs-lite
echo -n "[*] Packaging x86_64-linux-android binary -> "
tar czvf "./release/qs-netcat_android_amd64.tar.gz" "./target/x86_64-linux-android/release/qs-lite"
## Darwin
upx -q --best ./target/x86_64-apple-darwin/release/qs-lite
echo -n "[*] Packaging x86_64-apple-darwin binary -> "
tar czvf "./release/x86_64-apple-darwin.tar.gz" "./target/x86_64-apple-darwin/release/qs-lite"