add install script

This commit is contained in:
Michael Becker 2021-05-05 00:46:41 -04:00
parent 71121dd81f
commit 943cfe8fdf
No known key found for this signature in database
GPG Key ID: 98C333A81F18C22C
3 changed files with 16 additions and 2 deletions

View File

@ -88,7 +88,6 @@ cd $WD
# install other junk
sudo cp MainIcon.png /usr/share/icons/universal-editor.png
sudo cp net.alcetech.UniversalEditor.desktop /usr/share/applications
# start the build
msbuild

15
install.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
cp MainIcon.png /usr/share/icons/universal-editor.png
cp net.alcetech.UniversalEditor.desktop /usr/share/applications
mkdir /usr/lib/universal-editor
cp -r Output/Debug/* /usr/lib/universal-editor
cp universal-editor /usr/lib/universal-editor
echo "#!/bin/sh
cd /usr/lib/universal-editor
./universal-editor ${1+\"$@\"}
" > /usr/bin/universal-editor

View File

@ -3,4 +3,4 @@ FLAVOR=Debug
APPNAME=UniversalEditor
cd Output/$FLAVOR
mono $APPNAME.exe
mono $APPNAME.exe ${1+"$@"}