Repository navigation
losslesscut: 3.69.0 -> 3.70.1; fix update script; use dynamic patching - #578801
Conversation
b555466 to
aba6923
Compare
✅
|
I think you forgot to check this will review in a bit |
The nixpkgs-review jobs were still running when I ticked the boxes.
Thank you. |
| }; | ||
|
|
||
| patches = [ | ||
| # fixes a few things that try to guess whether it's a dev build | ||
| ./undev.patch | ||
| ./disable-update-check.patch |
There was a problem hiding this comment.
- files are now unused, should remove them
- this removes a change to the settings dialog that makes it clear that "check for updates" doesn't work. I'd like to keep that.
There was a problem hiding this comment.
this removes a change to the settings dialog that makes it clear that "check for updates" doesn't work. I'd like to keep that.
Do you mean this one
diff --git i/src/main/configStore.ts w/src/main/configStore.ts
index 3a80d2aa..b95546a9 100644
--- i/src/main/configStore.ts
+++ w/src/main/configStore.ts
@@ -154,7 +154,6 @@ const defaults: Config = {
captureFrameQuality: 0.95,
captureFrameFileNameFormat: 'timestamp',
enableNativeHevc: true,
- enableUpdateCheck: true,
cleanupChoices: {
trashTmpFiles: true, askForCleanup: true, closeFile: true, cleanupAfterExport: false,
},or this one?
@@ -204,7 +204,7 @@ function Settings({
<Row>
<KeyCell>{t('Check for updates on startup?')}</KeyCell>
<td>
- <Switch checked={enableUpdateCheck} onCheckedChange={setEnableUpdateCheck} />
+ (always disabled in nixpkgs build)
</td>
</Row>
)}I'll re-implement both in postPatch.
There was a problem hiding this comment.
I re-implemented the update script disabling logic.
Here are the difference between the patch and the substitution:
disable-update-check.patch removes the configuration option enableUpdateChecker, which inherently means patching every lines of code touching it.
The substitution method keeps the configuration option but replaces
- Its default value: from
truetofalse - The configuration getter: always return false for key
'enableUpdateChecker'. - The UI: See below.
disable-update-check.patch removes the switch from the "Files > Settings" UI.
The substitution method keep the switch but make it unchecked and non-interactive (grayed out).
| local _pattern="$1" | ||
| shift | ||
| local _status=0 | ||
| local _unreplacedFiles |
There was a problem hiding this comment.
Why the underscore prefix? I know bash is bad about proper name scoping, but I don't think an underscore helps very much and local should be plenty here
There was a problem hiding this comment.
also status can be declare -i status=0 and then even shellcheck won't complain about that variable unquoted
There was a problem hiding this comment.
Why the underscore prefix?
It was a leftover from the time this block of code was not inside a Bash function.
I'll fix it.
Suggested but not required. Also that checkbox I think is more for new contributors, it could almost be "I have read..." instead. Whether or not you've run nixpkgs-review is a separate checkbox. |
aba6923 to
a95e6e1
Compare
Reimplement the goal of disable-update-check.patch with substitution. disable-update-check.patch removes the configuration option enableUpdateChecker, which inherently means patching every lines of code touching it. The substitution method keeps the configuration option but replaces * Its default value: from `true` to `false` * The configuration getter: always return false for key `'enableUpdateChecker'`. * The UI: See below. disable-update-check.patch removes the switch from the "Files > Settings" UI. The substitution method keep the switch but make it unchecked and non-interactive (grayed out).
Add --src-only to the first nix-update call. Assisted-by: claude-code: claude-opus-5.5
Assisted-by: claude-code: claude-opus-5.5
a95e6e1 to
bee1876
Compare
|
✅
|
Use
--src-onlyto updatesrcfirst (without touchingofflineCache) to allow subsequent update ofmissing-hashes.jsonandofflineCache.(discovered and fixed with LLM assistance)
Following fix-ups:
afterPackduring build process, as it expects the bundled FFmpeg.(discovered and fixed with LLM assistance)
Most of the diffs were hand-written. LLM assistance were mainly for debugging and is disclosed above.
Initial efforts for testing and landing upstream PR mifi/lossless-cut#3180 for Electron version bump 42 -> 45 to address Electron 42 EOL (issue #576496)
Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.