diff --git a/firstrun.sh b/firstrun.sh index 7e8f14a9..0da2d663 100755 --- a/firstrun.sh +++ b/firstrun.sh @@ -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 diff --git a/install.sh b/install.sh new file mode 100644 index 00000000..e5303d71 --- /dev/null +++ b/install.sh @@ -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 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 diff --git a/universal-editor b/universal-editor index 5e425ec8..364d6243 100755 --- a/universal-editor +++ b/universal-editor @@ -3,4 +3,4 @@ FLAVOR=Debug APPNAME=UniversalEditor cd Output/$FLAVOR -mono $APPNAME.exe +mono $APPNAME.exe ${1+"$@"}