From 4939bfeb20062200838e380e15069c74a3dea647 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Wed, 5 May 2021 00:46:41 -0400 Subject: [PATCH] add install script --- firstrun.sh | 1 - install.sh | 15 +++++++++++++++ universal-editor | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 install.sh 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+"$@"}