Skip to content

Commit

Permalink
Update icon and improve deb package (PhoenicisOrg#1670)
Browse files Browse the repository at this point in the history
  • Loading branch information
qparis authored Dec 30, 2018
1 parent b941b8d commit 9ba790a
Show file tree
Hide file tree
Showing 21 changed files with 53 additions and 40 deletions.
13 changes: 0 additions & 13 deletions phoenicis-dist/src/deb/control/control

This file was deleted.

4 changes: 0 additions & 4 deletions phoenicis-dist/src/deb/scripts/phoenicis-cli

This file was deleted.

8 changes: 0 additions & 8 deletions phoenicis-dist/src/deb/scripts/phoenicis-cli.desktop

This file was deleted.

3 changes: 0 additions & 3 deletions phoenicis-dist/src/deb/scripts/phoenicis-javafx

This file was deleted.

8 changes: 0 additions & 8 deletions phoenicis-dist/src/deb/scripts/phoenicis-javafx.desktop

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ Terminal=false
Type=Application
MimeType=application/x-ms-dos-executable;application/x-msi;application/x-ms-shortcut;
Icon=org.phoenicis.playonlinux
Categories=Utility
Categories=Game;Utility
Keywords=Phoenicis;PlayOnLinux;Wine;

Binary file modified phoenicis-dist/src/flatpak/phoenicis_16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified phoenicis-dist/src/flatpak/phoenicis_22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified phoenicis-dist/src/flatpak/phoenicis_24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified phoenicis-dist/src/flatpak/phoenicis_256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified phoenicis-dist/src/flatpak/phoenicis_32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified phoenicis-dist/src/flatpak/phoenicis_48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified phoenicis-dist/src/flatpak/phoenicis_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions phoenicis-dist/src/launchers/phoenicis
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

/usr/share/phoenicis/PhoenicisPlayOnLinux "$@"
10 changes: 10 additions & 0 deletions phoenicis-dist/src/resources/Phoenicis.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Phoenicis PlayOnLinux
GenericName=Phoenicis PlayOnLinux
Comment=Phoenicis
Type=Application
Exec=phoenicis %F
Icon=phoenicis
Categories=Game;Utility;
Binary file added phoenicis-dist/src/resources/phoenicis-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added phoenicis-dist/src/resources/phoenicis-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
42 changes: 39 additions & 3 deletions phoenicis-dist/src/scripts/phoenicis-create-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,43 @@ fi

if [ "$PHOENICIS_OPERATING_SYSTEM" == "Linux" ]; then
jpackager create-image "${PHOENICIS_JPACKAGER_ARGUMENTS[@]}" --linux-bundle-name "phoenicis-playonlinux"
jpackager create-installer deb "${PHOENICIS_JPACKAGER_ARGUMENTS[@]}" --linux-package-deps "unzip, wget, xterm | x-terminal-emulator, imagemagick, cabextract, icoutils, p7zip-full, curl, winbind" --linux-deb-maintainer "PlayOnLinux Packaging <[email protected]>" --linux-bundle-name "phoenicis-playonlinux"
fi


packageName="Phoenicis_$VERSION"
cd "$PHOENICIS_TARGET"
rmdir packages/PhoenicisPlayOnLinux/
rm -rf "packages/phoenicis" 2> /dev/null
mv packages/Phoenicis\ PlayOnLinux/ packages/phoenicis
rm -rf "$packageName" 2> /dev/null
mkdir -p "$packageName/DEBIAN/"

cat << EOF > "$packageName/DEBIAN/control"
Package: phoenicis-playonlinux
Version: $VERSION
Section: misc
Priority: optional
Architecture: all
Depends: unzip, wget, xterm | x-terminal-emulator, python, imagemagick, cabextract, icoutils, p7zip-full, curl
Maintainer: PlayOnLinux Packaging <[email protected]>
Description: This program is a front-end for wine.
It permits you to install Windows Games and softwares
on Linux. It allows you to manage differents virtual hard drive,
and several wine versions.
Copyright 2011-2019 PlayOnLinux team <[email protected]>
EOF

mkdir -p $packageName/usr/share/applications
mkdir -p $packageName/usr/share/pixmaps
mkdir -p $packageName/usr/bin

cp -a packages/phoenicis $packageName/usr/share/
cp -a "$SCRIPT_PATH/../launchers/phoenicis" $packageName/usr/bin/phoenicis
chmod +x $packageName/usr/bin/phoenicis

cp "$SCRIPT_PATH/../resources/Phoenicis.desktop" "$packageName/usr/share/applications"
cp "$SCRIPT_PATH/../resources/phoenicis.png" "$packageName/usr/share/pixmaps"
cp "$SCRIPT_PATH/../resources/phoenicis-16.png" "$packageName/usr/share/pixmaps"
cp "$SCRIPT_PATH/../resources/phoenicis-32.png" "$packageName/usr/share/pixmaps"

fakeroot dpkg-deb --build "$packageName"
rm -rf deb
fi
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9ba790a

Please sign in to comment.