Update
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 145 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 211 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 385 KiB |
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 191 KiB |
@@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Author : Miguel Gao
|
||||
# Email : mgpickerstudio@gmail.com
|
||||
# Website: http://twincodes.com
|
||||
|
||||
function makeMGPickerDesktopFile()
|
||||
{
|
||||
exe="$currentDir/$realExecutableSuffix"
|
||||
file="$currentDir/MG-Picker.desktop"
|
||||
echo "[Desktop Entry]" > $file
|
||||
echo "Encoding=UTF-8" >> $file
|
||||
echo "Version=2.0.0" >> $file
|
||||
echo "Type=Application" >> $file
|
||||
echo "Terminal=false" >> $file
|
||||
echo "Name=MG-Picker" >> $file
|
||||
echo "Exec=$exe" >> $file
|
||||
echo "Icon=$currentDir/$programFolder/Icons/mgpicker2icon_256x256.png" >> $file
|
||||
echo "Comment=Powerful and intuitive picker designer." >> $file
|
||||
chmod +x $file
|
||||
chmod +x $exe
|
||||
}
|
||||
|
||||
programFolder='MG-PickerStudio/MGPicker_Program'
|
||||
realExecutableSuffix="$programFolder/Bin/MG-PickerStudio"
|
||||
currentDir=$(pwd)
|
||||
if ! [ -f "$currentDir/$realExecutableSuffix" ]
|
||||
then
|
||||
currentDir=$(dirname "$0")
|
||||
fi
|
||||
|
||||
echo "Making MG-PickerStudio launcher in dir $currentDir"
|
||||
if [ -f "$currentDir/$realExecutableSuffix" ]
|
||||
then
|
||||
makeMGPickerDesktopFile
|
||||
echo "Success: Now please double-click on the launcher 'MG-Picker' to launch MG-Picker Studio."
|
||||
else
|
||||
echo "Error making launcher: The executable file $currentDir/$realExecutableSuffix does not exist."
|
||||
fi
|
||||
# ----------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user