improve release flow

This commit is contained in:
Evan Pratten 2021-04-07 11:56:23 -04:00
parent e135a75937
commit dafb102624
6 changed files with 17 additions and 4 deletions

3
bundle/.gitignore vendored
View File

@ -1,2 +1,3 @@
*/*.zip
*/release
*/release
release

View File

@ -4,4 +4,15 @@ set -e
# Build all platforms
./bundle/linux/create-release.sh
./bundle/windows/create-release.sh
./bundle/windows/create-release.sh
# Make a uni-bundle
echo "Creating a fat bundle for all platforms"
rm -rf ./bundle/release
rm -rf ./bundle/ludum-dare-48.zip
mkdir -p ./bundle/release
cp -r ./assets ./bundle/release
cp ./bundle/linux/release/ludum-dare-48 ./bundle/release/ludum-dare-48
cp ./bundle/windows/release/ludum-dare-48.exe ./bundle/release/ludum-dare-48.exe
cd ./bundle/release
zip -r ../ludum-dare-48.zip ./

View File

@ -8,6 +8,7 @@ cross build --target x86_64-unknown-linux-gnu --release
echo "Creating bundle output"
rm -rf ./bundle/linux/release
rm -rf ./bundle/linux/release-x86_64-unknown-linux-gnu.zip
mkdir -p ./bundle/linux/release
echo "Copying binary"

BIN
bundle/ludum-dare-48.zip Normal file

Binary file not shown.

View File

@ -7,6 +7,7 @@ cross build --target x86_64-pc-windows-gnu --release
echo "Creating bundle output"
rm -rf ./bundle/windows/release
rm -rf ./bundle/windows/release-x86_64-pc-windows-gnu.zip
mkdir -p ./bundle/windows/release
echo "Copying binary"

View File

@ -67,9 +67,8 @@ impl FrameAnimationWrapper {
width: self.size.x,
height: self.size.y,
};
println!("{:?}", frame_box);
// Render
// handle.draw_texture(&mut self.sprite_sheet, 0, 0, Color::WHITE);
handle.draw_texture_rec(&mut self.sprite_sheet, frame_box, position, Color::WHITE);
}
}