-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: automatically build version-edit zip
- Loading branch information
Showing
1 changed file
with
26 additions
and
1 deletion.
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,7 +1,32 @@ | ||
#!/usr/bin/sh | ||
set -e | ||
|
||
if ! type "cargo-skyline" > /dev/null; then | ||
cargo install --git https://github.com/jam1garner/cargo-skyline | ||
fi | ||
|
||
cargo skyline package -s "https://github.com/RoccoDev/skyline/releases/download/cross-game-local-logging/release.zip" | ||
echo "Building release.zip..." | ||
|
||
cargo +skyline skyline package -s "https://github.com/RoccoDev/skyline/releases/download/cross-game-local-logging/release.zip" | ||
|
||
echo "Building release-version-edit.zip..." | ||
|
||
cargo +skyline skyline build --release --features edit-version | ||
|
||
cwd=$(pwd) | ||
game_dir="atmosphere/contents/010074F013262000/romfs/skyline/plugins" | ||
target=$cwd/target | ||
cargo_target=${CARGO_TARGET_DIR:-$target} | ||
|
||
mkdir -p $target && cd $target | ||
cp release.zip $cargo_target/aarch64-skyline-switch/release/release-version-edit.zip | ||
cd $cargo_target/aarch64-skyline-switch/release | ||
mkdir -p $game_dir | ||
cp libxc3_file_loader.nro $game_dir | ||
zip release-version-edit.zip $game_dir/libxc3_file_loader.nro | ||
|
||
cd $target | ||
mv $cargo_target/aarch64-skyline-switch/release/release-version-edit.zip . | ||
|
||
cd $cwd | ||
|