Commit graph

5 commits

Author SHA1 Message Date
claustromaniac
c57000acb7 Updater for Windows v3.0
Changes:

- Fixed label clash with obsolete Break command.
- Smarter and case-insensitive version checks.
- Case-insensitive parameter checks.
- Overall syntax improvements and fixes, for consistency and to prevent circumstancial weird behaviour.
- Removed some unnecessary lines.
- By default the updater now attempts to auto update itself on execution. This new behaviour can be skipped with the new -SkipBatchUpdate switch.
- Added new -LogP switch, that works just like -Log, but also opens the log file after updating.
- Added new -MultiOverrides switch, that uses any and all .js files in a 'user.js-overrides' sub-folder as overrides instead of the default 'user-overrides.js' file. Files are appended in alphabetical order.
- Added new -Merge switch, that uses a new algorithm to merge overrides instead of appending them. Files are parsed in alphabetical order and when there are conflicting records, the values of the last ones declared are the ones used. The order of said records doesn't change in the resulting file. Comments are appended normally. When the script is run with both -Merge and -MultiOverrides switches, an 'user-overrides-merged.js' file is also generated in the root directory for quick reference. Said file contains only the merged data from override files and can be safely discarded after updating.
- Probably some other minor stuff I can't remember right now.
2017-11-26 07:44:36 +00:00
claustromaniac
efcaa3de8a
Just some polishing 2017-11-19 17:41:19 +00:00
earthlng
cdeb0abe79
update to v2.0
https://github.com/ghacksuserjs/ghacks-user.js/issues/264#issuecomment-345462158

- It can now handle read-only files.
- it is somewhat more explicit regarding what it's doing in some circumstances. For example, it now informs the user when no changes are made.
- It now accepts two parameters: `-unattended` and `-log`
- Minor improvements here and there.
2017-11-19 08:58:47 +01:00
earthlng
754ec610d1
typo 2017-11-17 15:48:39 +01:00
earthlng
fe752c8be3
Create updater.bat
thanks @claustromaniac
2017-11-17 15:45:16 +01:00