improve release flow
This commit is contained in:
parent
e135a75937
commit
dafb102624
1
bundle/.gitignore
vendored
1
bundle/.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
*/*.zip
|
*/*.zip
|
||||||
*/release
|
*/release
|
||||||
|
release
|
@ -5,3 +5,14 @@ set -e
|
|||||||
# Build all platforms
|
# Build all platforms
|
||||||
./bundle/linux/create-release.sh
|
./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 ./
|
@ -8,6 +8,7 @@ cross build --target x86_64-unknown-linux-gnu --release
|
|||||||
|
|
||||||
echo "Creating bundle output"
|
echo "Creating bundle output"
|
||||||
rm -rf ./bundle/linux/release
|
rm -rf ./bundle/linux/release
|
||||||
|
rm -rf ./bundle/linux/release-x86_64-unknown-linux-gnu.zip
|
||||||
mkdir -p ./bundle/linux/release
|
mkdir -p ./bundle/linux/release
|
||||||
|
|
||||||
echo "Copying binary"
|
echo "Copying binary"
|
||||||
|
BIN
bundle/ludum-dare-48.zip
Normal file
BIN
bundle/ludum-dare-48.zip
Normal file
Binary file not shown.
@ -7,6 +7,7 @@ cross build --target x86_64-pc-windows-gnu --release
|
|||||||
|
|
||||||
echo "Creating bundle output"
|
echo "Creating bundle output"
|
||||||
rm -rf ./bundle/windows/release
|
rm -rf ./bundle/windows/release
|
||||||
|
rm -rf ./bundle/windows/release-x86_64-pc-windows-gnu.zip
|
||||||
mkdir -p ./bundle/windows/release
|
mkdir -p ./bundle/windows/release
|
||||||
|
|
||||||
echo "Copying binary"
|
echo "Copying binary"
|
||||||
|
@ -67,9 +67,8 @@ impl FrameAnimationWrapper {
|
|||||||
width: self.size.x,
|
width: self.size.x,
|
||||||
height: self.size.y,
|
height: self.size.y,
|
||||||
};
|
};
|
||||||
println!("{:?}", frame_box);
|
|
||||||
// Render
|
// 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);
|
handle.draw_texture_rec(&mut self.sprite_sheet, frame_box, position, Color::WHITE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user