This repository has been archived by the owner on Nov 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
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
11 changed files
with
190 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Exclude the following files to make this a Python project | ||
*.sh linguist-vendored=true | ||
*.nsi linguist-vendored=true |
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/bash | ||
|
||
SCRIPT_PATH=$(dirname -- ${BASH_SOURCE[0]}) | ||
|
||
INPUT_DIR=${SCRIPT_PATH}/program | ||
LICENSE_FILE=${INPUT_DIR}/LICENSE | ||
OUTPUT_FILE=$1 | ||
LABEL="Erriez PySide6 App" | ||
|
||
echo "Creating Linux installer" | ||
makeself --sha256 --license ${LICENSE_FILE} ${INPUT_DIR} ${OUTPUT_FILE} "${LABEL}" ./install.sh | ||
|
||
echo "Created installer:" | ||
./${OUTPUT_FILE} --check | ||
./${OUTPUT_FILE} --info | ||
./${OUTPUT_FILE} --list |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 Erriez | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Desktop Entry] | ||
Type=Application | ||
Name=Erriez Pyside6 App | ||
GenericName=Erriez Pyside6 App | ||
Comment=A PySide6 example application created by Erriez | ||
Icon= | ||
Exec= | ||
Categories=PySide6;Utility; | ||
Keywords=Erriez;PySide6; | ||
Terminal=false | ||
MimeType=application/erriez-pyside6-app; |
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/usr/bin/bash | ||
|
||
APP_EXE=erriez-pyside6-app | ||
APP_LICENSE=LICENSE | ||
APP_UNINSTALL=uninstall.sh | ||
APP_ICO=pyside6.ico | ||
APP_SHORTCUT=${APP_EXE}.desktop | ||
APP_DEVELOPER=erriez | ||
|
||
EXE_PATH=$HOME/.local/bin/${APP_DEVELOPER} | ||
ICON_PATH=$HOME/.local/share/icons | ||
SHORTCUT_PATH=$HOME/.local/share/applications | ||
|
||
DST_EXE_FILE=${EXE_PATH}/${APP_EXE} | ||
DST_LICENSE_FILE=${EXE_PATH}/${APP_LICENSE} | ||
DST_UNINSTALL_FILE=${EXE_PATH}/${APP_UNINSTALL} | ||
DST_ICON_FILE=${ICON_PATH}/${APP_ICO} | ||
DST_SHORTCUT_FILE=${SHORTCUT_PATH}/${APP_SHORTCUT} | ||
|
||
# Start installation | ||
echo "Installing ${APP_EXE}..." | ||
|
||
# Create directories | ||
mkdir -p ${EXE_PATH} | ||
mkdir -p ${ICON_PATH} | ||
mkdir -p ${SHORTCUT_PATH} | ||
|
||
# Copy files | ||
cp ${APP_EXE} ${DST_EXE_FILE} | ||
cp ${APP_LICENSE} ${DST_LICENSE_FILE} | ||
cp ${APP_UNINSTALL} ${DST_UNINSTALL_FILE} | ||
cp ${APP_ICO} ${DST_ICON_FILE} | ||
cp ${APP_SHORTCUT} ${DST_SHORTCUT_FILE} | ||
|
||
# Make executable | ||
chmod +x ${DST_EXE_FILE} | ||
chmod +x ${DST_UNINSTALL_FILE} | ||
chmod +x ${DST_SHORTCUT_FILE} | ||
|
||
# Replace Icon= and Exec= with absolute path in .desktop shortcut | ||
sed -i "s_Icon=_Icon=${DST_ICON_FILE}_g" ${DST_SHORTCUT_FILE} | ||
sed -i "s_Exec=_Exec=${DST_EXE_FILE} %f_g" ${DST_SHORTCUT_FILE} | ||
|
||
echo "Application installed in: ${EXE_PATH}" | ||
echo "Run uninstall.sh in the install directory to uninstall." | ||
echo "Installation completed" |
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/bash | ||
|
||
APP_EXE=erriez-pyside6-app | ||
APP_UNINSTALL=uninstall.sh | ||
APP_ICO=pyside6.ico | ||
APP_SHORTCUT=${APP_EXE}.desktop | ||
APP_DEVELOPER=erriez | ||
|
||
EXE_PATH=$HOME/.local/bin/${APP_DEVELOPER} | ||
ICON_PATH=$HOME/.local/share/icons | ||
SHORTCUT_PATH=$HOME/.local/share/applications | ||
|
||
DST_EXE_FILE=${EXE_PATH}/${APP_EXE} | ||
DST_UNINSTALL_FILE=${EXE_PATH}/${APP_UNINSTALL} | ||
DST_ICON_FILE=${ICON_PATH}/${APP_ICO} | ||
DST_SHORTCUT_FILE=${SHORTCUT_PATH}/${APP_SHORTCUT} | ||
|
||
# Remove files and directories | ||
rm -r ${EXE_PATH} | ||
rm ${DST_ICON_FILE} | ||
rm ${DST_SHORTCUT_FILE} | ||
|
||
echo "Uninstall completed" |