Commit Graph

71 Commits

Author SHA1 Message Date
earthlng
0a97660506
updater.bat v3.0 FINAL
THE REAL FUCKING DEAL this time - finally! THANKS @claustromaniac !!
2017-11-29 23:20:00 +01:00
claustromaniac
3737b65f53 Fixed issue with commented-out user_pref lines
It ended up being a mixture of the previous commit and the fix. It writes a temporary file on the go that only holds preferences, and generates the target file at once at the end. It's slower than before, but it works.
2017-11-29 16:15:20 +00:00
claustromaniac
635cacfe54 Replace PING with TIMEOUT
Otherwise earthing's nosy firewall bitches about it.
2017-11-29 15:49:21 +00:00
claustromaniac
a126a32109 Revert "2nd merge optimisation"
This reverts commit c9e7f1ccfa.
2017-11-29 15:18:23 +00:00
claustromaniac
c9e7f1ccfa 2nd merge optimisation
While I figure out a fix for the missing characters...

Enclosing the whole merging loop in parentheses and replacing the source file with the entire output at once is more efficient than appending individual lines with >>%~2. The script doesn't have to wait for the HD to continue processing.
2017-11-29 12:08:15 +00:00
claustromaniac
ff9370b714 fix for hiding powershell output
Everything in a line after a powershell call is considered as being called from PowerShell.

>nul didn't work because of that. Enclosing the line in brackets should fix it.
2017-11-29 04:56:33 +00:00
claustromaniac
b1fd2ba48b minor fix
What would we want a warning that we can't get to read for?
2017-11-29 04:50:01 +00:00
claustromaniac
bdf69cd198 misc
To account for the possibility of the user running the script silently in the background. PAUSE would leave an instance in memory doing nothing indefinitely.

I was going to use TIMEOUT but PING performs better.
2017-11-29 04:33:02 +00:00
claustromaniac
6ff3d1eb36 Fix for the self-update feature and misc
Also minor but significant improvement to the merge function: it no longer writes temp files to the disk while processing data.
2017-11-28 21:53:20 +00:00
earthlng
a389572243
loops forever - fuck it 2017-11-28 18:33:31 +01:00
earthlng
51d98fac09
last attempt
if this doesn't work I'll remove the damn -updatebatch part for good
2017-11-28 18:27:55 +01:00
earthlng
ed4c9202b9
updater.bat v3.0 the real deal
hopefully :fingers_crossed:
2017-11-28 18:15:14 +01:00
earthlng
5b931b06e8
updater.bat auto-update part 2017-11-28 17:34:14 +01:00
earthlng
d3eda589bb
Update updater.bat 2017-11-28 17:32:32 +01:00
earthlng
1c997693ff
merging improvements
- keeps all user.js.parrot lines intact
- keeps empty lines intact
- fix for keeping `!` and `^` in non-"user_pref" lines intact

+ some other minor changes + streamlining
2017-11-27 14:02:12 +01:00
earthlng
3ec7dae496
Update updater.bat
merge functionality and some cleanup
2017-11-26 21:47:30 +01:00
earthlng
a269e53f88
Update updater.bat
- multioverrides support
- formatting changes
2017-11-26 15:57:32 +01: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