fix: build librarier again correctly

This commit is contained in:
dusk 2024-09-13 01:36:59 +09:00
parent 848d528d51
commit 4c5176ca48
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw
7 changed files with 18 additions and 10 deletions

View File

@ -4,13 +4,13 @@ compatibility_minimum = 4.2
reloadable = true reloadable = true
[libraries] [libraries]
linux.debug.x86_64 = "res://rust/target/debug/libboids.so" linux.debug.x86_64 = "res://rust/target/debug/boids.x86.editor.so"
windows.debug.x86_64 = "res://rust/target/debug/boids.dll" windows.debug.x86_64 = "res://rust/target/debug/boids.x86.editor.dll"
web.debug.wasm32 = "res://addons/boids/lib/boids.editor.wasm"
linux.release.x86_64 = "res://addons/boids/lib/boids.x86.so" linux.release.x86_64 = "res://addons/boids/lib/boids.x86.so"
windows.release.x86_64 = "res://addons/boids/lib/boids.x86.dll" windows.release.x86_64 = "res://addons/boids/lib/boids.x86.dll"
macos.release = "res://addons/boids/lib/boids.x86.dylib" macos.release = "res://addons/boids/lib/boids.x86.dylib"
macos.release.arm64 = "res://addons/boids/lib/boids.arm64.dylib" macos.release.arm64 = "res://addons/boids/lib/boids.arm64.dylib"
web.debug.wasm32 = "res://rust/target/wasm32-unknown-emscripten/debug/boids.wasm"
web.release.wasm32 = "res://addons/boids/lib/boids.wasm" web.release.wasm32 = "res://addons/boids/lib/boids.wasm"
[icons] [icons]

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,9 +1,17 @@
#!/bin/sh #!/bin/sh
if [ "$1" == "release" ]; then
cross build --release --target x86_64-unknown-linux-gnu cross build --release --target x86_64-unknown-linux-gnu
cross build --release --target x86_64-pc-windows-gnu cross build --release --target x86_64-pc-windows-gnu
cross +nightly build -Zbuild-std --release --target wasm32-unknown-emscripten cross +nightly build -Zbuild-std --release --target wasm32-unknown-emscripten
mv target/x86_64-unknown-linux-gnu/release/libboids.so ../addons/boids/lib/boids.x86.so mv target/x86_64-unknown-linux-gnu/release/libboids.so ../addons/boids/lib/boids.x86.so
mv target/x86_64-pc-windows-gnu/release/boids.dll ../addons/boids/lib/boids.x86.dll mv target/x86_64-pc-windows-gnu/release/boids.dll ../addons/boids/lib/boids.x86.dll
mv target/wasm32-unknown-emscripten/release/boids.wasm ../addons/boids/lib/boids.wasm mv target/wasm32-unknown-emscripten/release/boids.wasm ../addons/boids/lib/boids.wasm
else
cross build --target x86_64-unknown-linux-gnu
cross build --target x86_64-pc-windows-gnu
cross +nightly build -Zbuild-std --target wasm32-unknown-emscripten
mv target/x86_64-unknown-linux-gnu/debug/libboids.so ../addons/boids/lib/boids.x86.editor.so
mv target/x86_64-pc-windows-gnu/debug/boids.dll ../addons/boids/lib/boids.x86.editor.dll
mv target/wasm32-unknown-emscripten/debug/boids.wasm ../addons/boids/lib/boids.editor.wasm
fi