add build scripts
This commit is contained in:
parent
c3ee96429c
commit
1d2190d68e
26 changed files with 1327 additions and 6 deletions
20
scripts/_app_scaffolds/linux/install.sh
Normal file
20
scripts/_app_scaffolds/linux/install.sh
Normal file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Installing ..."
|
||||
cd ..
|
||||
mkdir {APP_PATH}
|
||||
cp -r {APP_NAME} {APP_BASEPATH}
|
||||
|
||||
cd {APP_NAME}
|
||||
chmod +x {APP_EXEC}
|
||||
cp {APP_ICON} {APP_ICON_PATH}
|
||||
cp {APP_NAME}.desktop /usr/share/applications/{APP_NAME}.desktop
|
||||
|
||||
read -p "Delete original files? (y/n): " answer
|
||||
if [[ $answer == "y" ]]; then
|
||||
echo "Deleting ..."
|
||||
cd ..
|
||||
rm -rf {APP_NAME}
|
||||
fi
|
||||
|
||||
echo "DONE."
|
9
scripts/_app_scaffolds/linux/myapp.desktop
Normal file
9
scripts/_app_scaffolds/linux/myapp.desktop
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Encoding=UTF-8
|
||||
Name={APP_NAME}
|
||||
Icon={APP_ICON_PATH}
|
||||
Exec={APP_EXEC}
|
||||
Path={APP_PATH}
|
||||
Terminal=false
|
||||
Type=Application
|
Loading…
Add table
Add a link
Reference in a new issue