Browse Source

add build scripts for native and musl

master
Ondřej Hruška 2 years ago
parent
commit
ff84a7a481
Signed by untrusted user: MightyPork GPG Key ID: 2C5FD5035250423D
  1. 1
      .gitignore
  2. 8
      build.sh
  3. 8
      build_musl.sh
  4. 3
      out/.gitignore

1
.gitignore

@ -1,3 +1,4 @@
/target
.idea/
crsn.json5

8
build.sh

@ -0,0 +1,8 @@
#!/bin/bash
set -e
cargo build --release --bin launcher
cp target/release/launcher ./out/crsn
echo "Target built and copied to ./out/crsn"

8
build_musl.sh

@ -0,0 +1,8 @@
#!/bin/bash
set -e
cargo build --target x86_64-unknown-linux-musl --release --bin launcher_nox
cp target/x86_64-unknown-linux-musl/release/launcher_nox ./out/crsn-musl
echo "Target built and copied to ./out/crsn-musl"

3
out/.gitignore

@ -0,0 +1,3 @@
*
!.gitignore
Loading…
Cancel
Save