From 862c23111af0ffbcd0720369ae3cd751e318bd58 Mon Sep 17 00:00:00 2001 From: Xevion Date: Wed, 24 Apr 2024 05:18:53 -0500 Subject: [PATCH] Change project name to 'spiritus' --- .github/workflows/build.yaml | 6 +++--- Cargo.lock | 34 +++++++++++++++++----------------- Cargo.toml | 2 +- assets/index.html | 2 +- scripts/build.sh | 10 +++++----- 5 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 51e7031..9b72fb3 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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/ diff --git a/Cargo.lock b/Cargo.lock index 5d66c3d..588213b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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" diff --git a/Cargo.toml b/Cargo.toml index ee8a8c6..35ae306 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "pacman" +name = "spiritus" version = "0.1.0" edition = "2021" diff --git a/assets/index.html b/assets/index.html index 8341436..8e7eb3a 100644 --- a/assets/index.html +++ b/assets/index.html @@ -114,6 +114,6 @@ canvas: document.getElementById("canvas"), }; - + diff --git a/scripts/build.sh b/scripts/build.sh index 5b1d182..848b689 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -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