-
Notifications
You must be signed in to change notification settings - Fork 35
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
Showing
1 changed file
with
10 additions
and
13 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,32 +1,29 @@ | ||
#!/bin/bash | ||
if [ $# != 3 ] | ||
then | ||
echo "Version and size not provided." | ||
echo "You must add 3 parameters: main_version specific_version size_in_bytes" | ||
echo "for example: 20.12 1 93396" | ||
exit | ||
fi | ||
version=ultrastar-worldparty_$1-$2_amd64 | ||
version_numeric=$(head -n 1 ../../VERSION)-${1:-1} | ||
version=ultrastar-worldparty_${version_numeric}_amd64 | ||
build=dists/linux/$version | ||
build_game=../$build | ||
mkdir $version | ||
cd $version | ||
mkdir -p usr/games usr/share/ultrastar-worldparty usr/share/applications usr/share/icons/hicolor/256x256/apps | ||
cd .. | ||
cp ultrastar-worldparty.desktop $version/usr/share/applications/ultrastar-worldparty.desktop | ||
cd ../../game | ||
cd ../atom/linux | ||
./compile.sh ../../.. compile-snap | ||
./compile.sh ../../.. compile-snap-debug | ||
cd ../../../game | ||
cp WorldParty $build_game/usr/games/ultrastar-worldparty | ||
cp WorldPartyDebug $build_game/usr/games/ultrastar-worldparty-debug | ||
cp resources/icons/WorldParty.png $build_game/usr/share/icons/hicolor/256x256/apps/ultrastar-worldparty.png | ||
cp -r avatars covers fonts languages plugins resources sounds themes visuals $build_game/usr/share/ultrastar-worldparty | ||
cp -r avatars covers fonts languages licenses plugins resources sounds themes $build_game/usr/share/ultrastar-worldparty | ||
cd $build_game | ||
mkdir DEBIAN | ||
mkdir DEBIAN usr/share/ultrastar-worldparty/songs usr/share/ultrastar-worldparty/playlists | ||
echo "Package: ultrastar-worldparty | ||
Version: 20.12-1 | ||
Version: $version_numeric | ||
Section: games | ||
Priority: optional | ||
Architecture: amd64 | ||
Installed-Size: $3 | ||
Installed-Size: $(du -s usr | cut -f1) | ||
Depends: libsdl2-image-dev, libavformat-dev, libswscale-dev, libsqlite3-dev, libfreetype6-dev, libportmidi-dev, liblua5.3-dev, libopencv-highgui-dev | ||
Maintainer: TeLiXj <[email protected]> | ||
Homepage: https://ultrastar-es.org | ||
|