Skip to content

Commit 4e444e2

Browse files
Made build-release.sh somewhat useful
Now its specifically for making a build for the current os so that people can use the latest commit for actually playing the game more easily.
1 parent 3236229 commit 4e444e2

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

build-release.sh

100644100755
Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,17 @@ set -euo pipefail
44
echo Deleting old builds
55
cargo clean
66

7-
echo Building for Linux
8-
cargo build --target x86_64-unknown-linux-gnu --release
9-
10-
echo Building for Windows
11-
cargo build --target x86_64-pc-windows-gnu --release
7+
echo Building...
8+
cargo build --release
129

1310
echo Creating folders
1411
rm -rf Geometry-Rays
1512
mkdir Geometry-Rays
1613

17-
echo Copying compiled executables
18-
cp ./target/x86_64-unknown-linux-gnu/release/geometry-rays-fyre ./Geometry-Rays
19-
cp ./target/x86_64-pc-windows-gnu/release/geometry-rays-fyre.exe ./Geometry-Rays
14+
echo Copying executable
15+
cp ./target/release/geometry-rays-fyre ./Geometry-Rays
2016

2117
echo Copying required folders
2218
cp -r ./Resources ./Geometry-Rays
2319
cp -r ./mods ./Geometry-Rays
2420
cp -r ./save-data ./Geometry-Rays
25-
26-
echo Zipping the package
27-
7z a -tzip Geometry-Rays.zip Geometry-Rays
28-
29-
echo Removing temporary directory
30-
rm -rf ./Geometry-Rays

0 commit comments

Comments
 (0)