2016-12-11 14:46:04 +00:00
|
|
|
Noccy's HotFixes
|
|
|
|
================
|
2016-04-19 13:54:03 +00:00
|
|
|
|
2016-12-11 14:46:04 +00:00
|
|
|
## How do I install the hotfix utility?
|
2016-04-19 13:54:03 +00:00
|
|
|
|
2016-12-11 14:46:04 +00:00
|
|
|
### Automated installation
|
2016-04-19 13:54:03 +00:00
|
|
|
|
2016-12-11 14:46:04 +00:00
|
|
|
The automated installer has been tested on Ubuntu 16.04.1, and it does all the
|
|
|
|
heavy lifting for you, including dependencies.
|
2016-04-19 13:54:03 +00:00
|
|
|
|
2016-12-11 14:46:04 +00:00
|
|
|
$ sudo apt install curl
|
|
|
|
$ curl -O hotfix-installer.run http://files.noccy.com/hotfix/hotfix-installer.run
|
|
|
|
$ chmod +x hotfix-installer.run
|
|
|
|
$ ./hotfix-installer.run
|
2016-04-19 13:54:03 +00:00
|
|
|
|
2016-12-11 14:46:04 +00:00
|
|
|
### Manual install
|
2016-04-19 13:54:03 +00:00
|
|
|
|
2016-12-11 14:46:04 +00:00
|
|
|
If you would like to install it manually:
|
2016-04-19 13:54:03 +00:00
|
|
|
|
2016-12-11 14:46:04 +00:00
|
|
|
$ curl -O ~/bin/hotfix http://files.noccy.com/hotfix/hotfix
|
|
|
|
$ chmod +x ~/bin/hotfix
|
2016-04-19 13:54:03 +00:00
|
|
|
|
2016-12-24 13:41:38 +00:00
|
|
|
## Using Hotfixes
|
2016-04-19 13:54:03 +00:00
|
|
|
|
2016-12-24 13:41:38 +00:00
|
|
|
To use a hotfix, you need to have the publishers public key imported. For my hotfixes,
|
|
|
|
you need to do:
|
2016-12-11 14:46:04 +00:00
|
|
|
|
2016-12-24 13:41:38 +00:00
|
|
|
$ curl http://files.noccy.com/hotfix/signing-key.asc | gpg --import -
|
2016-12-11 14:46:04 +00:00
|
|
|
|
2016-12-24 13:41:38 +00:00
|
|
|
Next, create a file at `~/.hotfix.conf` containing:
|
2016-12-11 14:46:04 +00:00
|
|
|
|
2016-12-24 13:41:38 +00:00
|
|
|
[alias]
|
|
|
|
noccy=http://files.noccy.com/hotfix/{fix}.fix.signed
|
2016-12-11 14:46:04 +00:00
|
|
|
|
2016-12-24 13:41:38 +00:00
|
|
|
And finally, apply the desired hotfix:
|
2016-12-11 14:46:04 +00:00
|
|
|
|
2016-12-24 13:41:38 +00:00
|
|
|
$ hotfix apply noccy:install-processing
|
2016-12-11 14:46:04 +00:00
|
|
|
|
2016-12-24 13:41:38 +00:00
|
|
|
Without a defined alias you would do:
|
2016-12-11 14:46:04 +00:00
|
|
|
|
|
|
|
$ hotfix apply http://files.noccy.com/hotfix/install-processing.fix.signed
|
|
|
|
|
2016-12-24 13:41:38 +00:00
|
|
|
## Publishing Hotfixes
|
2016-07-21 01:08:06 +00:00
|
|
|
|
2016-12-24 13:41:38 +00:00
|
|
|
1. Create your hotfix in a text editor. You can use one of the examples as a
|
|
|
|
starting point.
|
|
|
|
2. Test the fix locally, using `hotfix apply -I <file>` to make sure it works
|
|
|
|
as intended.
|
|
|
|
3. Once everything works as intended, sign the hotfix using `hotfix sign <file>`
|
|
|
|
and upload the `.fix.signed` file to your location of choice.
|
|
|
|
4. Put a link to your public key in your forum signature, on your about page etc.
|
|
|
|
5. Publish your fix together with the relevant information.
|