mirror of
https://github.com/Xevion/rust-sdl2-emscripten.git
synced 2025-12-05 23:16:13 -06:00
Change project name to 'spiritus'
This commit is contained in:
6
.github/workflows/build.yaml
vendored
6
.github/workflows/build.yaml
vendored
@@ -77,8 +77,8 @@ jobs:
|
||||
- name: Assemble Archive
|
||||
run: |
|
||||
mkdir /tmp/example/
|
||||
cp ./target/release/pacman /tmp/example/
|
||||
chmod a+x /tmp/example/pacman
|
||||
cp ./target/release/spiritus /tmp/example/
|
||||
chmod a+x /tmp/example/spiritus
|
||||
mkdir /tmp/example/assets
|
||||
cp ./assets/TerminalVector.ttf ./assets/tetris.ogg ./assets/fruit.png /tmp/example/assets
|
||||
|
||||
@@ -150,7 +150,7 @@ jobs:
|
||||
- name: Prepare Archive
|
||||
run: |
|
||||
New-Item -Type Directory ./release/
|
||||
Move-Item -Path ./target/release/pacman.exe -Destination ./release/
|
||||
Move-Item -Path ./target/release/spiritus.exe -Destination ./release/
|
||||
Move-Item -Path ./SDL2.dll, ./SDL2_image.dll, ./SDL2_ttf.dll, ./SDL2_mixer.dll, ./SDL2_gfx.dll -Destination ./release/
|
||||
New-Item -Type Directory ./release/assets/
|
||||
Move-Item -Path ./assets/TerminalVector.ttf, ./assets/tetris.ogg, ./assets/fruit.png -Destination ./release/assets/
|
||||
|
||||
34
Cargo.lock
generated
34
Cargo.lock
generated
@@ -121,23 +121,6 @@ version = "0.1.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39"
|
||||
|
||||
[[package]]
|
||||
name = "pacman"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"atty",
|
||||
"colors-transform",
|
||||
"lazy_static",
|
||||
"libc",
|
||||
"rand",
|
||||
"sdl2",
|
||||
"spin_sleep",
|
||||
"tracing",
|
||||
"tracing-error",
|
||||
"tracing-subscriber",
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pin-project-lite"
|
||||
version = "0.2.13"
|
||||
@@ -291,6 +274,23 @@ dependencies = [
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "spiritus"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"atty",
|
||||
"colors-transform",
|
||||
"lazy_static",
|
||||
"libc",
|
||||
"rand",
|
||||
"sdl2",
|
||||
"spin_sleep",
|
||||
"tracing",
|
||||
"tracing-error",
|
||||
"tracing-subscriber",
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "syn"
|
||||
version = "2.0.31"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "pacman"
|
||||
name = "spiritus"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
|
||||
@@ -114,6 +114,6 @@
|
||||
canvas: document.getElementById("canvas"),
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="pacman.js"></script>
|
||||
<script type="text/javascript" src="spiritus.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -62,12 +62,12 @@ cp assets/index.html dist
|
||||
cp assets/*.woff* dist
|
||||
cp assets/build.css dist
|
||||
cp assets/favicon.ico dist
|
||||
cp $output_folder/pacman.wasm dist
|
||||
cp $output_folder/pacman.js dist
|
||||
cp $output_folder/spiritus.wasm dist
|
||||
cp $output_folder/spiritus.js dist
|
||||
# only if .data file exists
|
||||
cp $output_folder/deps/pacman.data dist
|
||||
if [ -f $output_folder/pacman.wasm.map ]; then
|
||||
cp $output_folder/pacman.wasm.map dist
|
||||
cp $output_folder/deps/spiritus.data dist
|
||||
if [ -f $output_folder/spiritus.wasm.map ]; then
|
||||
cp $output_folder/spiritus.wasm.map dist
|
||||
fi
|
||||
|
||||
if [ "$serve" = 'true' ]; then
|
||||
|
||||
Reference in New Issue
Block a user