-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8120947
commit 23daa0e
Showing
9 changed files
with
52 additions
and
7 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
/target | ||
/release-out |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
set -ex | ||
rm -rf release-out | ||
mkdir release-out | ||
cargo clean | ||
|
||
VERSION=$(cargo run --release --quiet -- --version) | ||
|
||
cargo build --target wasm32-unknown-unknown --lib --release | ||
# Include version number in filename because WebAssembly caching in Firefox | ||
# doesn't seem to respect 304 Not Modified :( | ||
cp target/wasm32-unknown-unknown/release/libSoundPalette.wasm release-out/libSoundPalette-v${VERSION}.wasm | ||
cat htdocs/index.html | sed -e 's/vX\.Y\.Z/v'"$VERSION"'/g' -e 's/libSoundPalette\.wasm/libSoundPalette-v'"$VERSION"'.wasm/g' > release-out/index.html | ||
zip -j release-out/SoundPalette-v"$VERSION".zip release-out/* |
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 |
---|---|---|
|
@@ -14,3 +14,5 @@ pub mod midi; | |
pub mod sysex; | ||
pub mod ui; | ||
pub mod wasm_ffi; | ||
|
||
pub const VERSION: &str = env!("CARGO_PKG_VERSION"); |
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