-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get linux and windows builds working
- Loading branch information
1 parent
83dfc36
commit ca8c514
Showing
21 changed files
with
234 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
|
||
ROOT=$(pwd) | ||
VERSION="v0.1.0-alpha" | ||
|
||
# part 0, make sure targets are present | ||
rustup target add x86_64-unknown-linux-gnu | ||
rustup target add x86_64-pc-windows-gnu | ||
|
||
# part 1, setup | ||
mkdir -p build | ||
rm -Rf build/* | ||
mkdir -p build/linux | ||
mkdir -p build/windows | ||
|
||
# part 2, build the backend | ||
cd "$ROOT/vpo-backend" | ||
|
||
cargo build --release | ||
cargo build --release --target x86_64-pc-windows-gnu | ||
|
||
cp target/release/vpo-backend $ROOT/build/linux | ||
cp target/x86_64-pc-windows-gnu/release/vpo-backend.exe $ROOT/build/windows | ||
|
||
# part 3, build the frontend | ||
cd $ROOT/vpo-frontend | ||
|
||
npm run build | ||
|
||
cp -R build $ROOT/build/linux/frontend | ||
cp -R build $ROOT/build/windows/frontend | ||
|
||
# part 4, package everything up | ||
cd $ROOT/build/linux | ||
tar -czvf "mjuo-linux-$VERSION.tar.gz" ./* | ||
mv "mjuo-linux-$VERSION.tar.gz" .. | ||
|
||
cd $ROOT/build/windows | ||
zip -r "mjuo-windows-$VERSION.zip" . | ||
mv "mjuo-windows-$VERSION.zip" .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,2 @@ | ||
[target.wasm32-unknown-unknown] | ||
rustflags = [ | ||
"-C", | ||
"link-arg=--initial-memory=327680000", | ||
] | ||
|
||
[target.x86_64-unknown-linux-gnu] | ||
rustflags = [ | ||
"-C", | ||
"link-arg=-fuse-ld=lld", | ||
] | ||
rustflags = ["-C", "link-arg=-fuse-ld=lld"] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.