Updated installer stuff

This commit is contained in:
Chris 2016-12-31 01:43:07 +01:00
parent ab96d598fb
commit 2dce9e4e8b
3 changed files with 50 additions and 0 deletions

13
installer/install.sh Normal file
View File

@ -0,0 +1,13 @@
#!/bin/bash
echo "Installing hotfix executable..."
cp hotfix ~/bin/hotfix
echo "Fixing permissions..."
chmod +x ~/bin/hotfix
if [ -e ~/.hotfix.conf ]; then
echo "Configuration file ~/.hotfix.conf already exists"
else
echo "Installing configuration file..."
cp hotfix.conf ~/.hotfix.conf
fi

5
installer/message Normal file
View File

@ -0,0 +1,5 @@
This installer will put hotfix into the bin directory of the current user, ie. install it as ~/bin/hotfix. If the directory does not exist, it will be created.
Most Linux distributions will automatically add ~/bin to the path if it exists. If hotfix isn't callable from the command line after restarting your shell and/or rebooting, please consult the documentation.
Some basic aliases will be installed into ~/.hotfix.conf if the file doesn't already exist.

32
selfie.conf Normal file
View File

@ -0,0 +1,32 @@
package "NoccyLabs Hotfix" {
output "setup-hotfix.run";
destination "~/bin";
res "app.version" "v0.2";
// screens
screen "welcome" type="message" entry=true {
title "Welcome to the %{app.name} %{app.version} installer";
text "@{installer:MESSAGE}";
next "license";
}
screen "license" type="license" {
title "Open Source License";
license "GNU GPL v3 or later";
text "@{installer:LICENSE}";
}
// bundles
bundle "installer" {
file "LICENSE" src="LICENSE";
file "MESSAGE" src="installer/message";
}
bundle "app" default=true {
file "hotfix";
file "hotfix.conf";
file "install.sh" src="installer/install.sh";
script "install.sh";
}
}