add packaging
This commit is contained in:
parent
41ee5c3be8
commit
ab9b3327b5
2 changed files with 38 additions and 0 deletions
2
package/zip/.gitignore
vendored
Normal file
2
package/zip/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
/workdir
|
||||||
|
/*.zip
|
36
package/zip/package
Executable file
36
package/zip/package
Executable file
|
@ -0,0 +1,36 @@
|
||||||
|
#!/usr/bin/bash
|
||||||
|
set -e
|
||||||
|
cd "$(dirname "$(realpath "$0")")"
|
||||||
|
|
||||||
|
|
||||||
|
(
|
||||||
|
cd ../..
|
||||||
|
cargo build --release --target=x86_64-unknown-linux-musl
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
rm -fr workdir
|
||||||
|
mkdir -p workdir
|
||||||
|
cp -v ../../target/x86_64-unknown-linux-musl/release/fsr-{rec,play} workdir/
|
||||||
|
(
|
||||||
|
cd workdir
|
||||||
|
zip -v ../fsr_linux.zip fsr-{rec,play}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
(
|
||||||
|
cd ../..
|
||||||
|
cargo xwin build --release --target=x86_64-pc-windows-msvc --bin=fsr-play --no-default-features
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
rm -fr workdir
|
||||||
|
mkdir -p workdir
|
||||||
|
cp -v ../../target/x86_64-pc-windows-msvc/release/fsr-play.exe workdir/
|
||||||
|
(
|
||||||
|
cd workdir
|
||||||
|
zip -v ../fsr_windows.zip fsr-play.exe
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
rm -fr workdir
|
Loading…
Add table
Add a link
Reference in a new issue