feat(ql3): rehearse legacy sqlite upgrade

This commit is contained in:
whyour
2026-08-21 00:52:58 +08:00
parent 4ea156f189
commit c9e41812cb
23 changed files with 1533 additions and 23 deletions
@@ -138,8 +138,7 @@ function descriptor(kind, uid, gid, root, adopted = false) {
function legacyDescriptor(kind, uid, gid, port) {
const nodeExecutable = fs.realpathSync(process.execPath);
const commandArgs =
`/workspace/scripts/ql3-service-manager-legacy-live-service.cjs ${port}`;
const commandArgs = `/workspace/scripts/ql3-service-manager-legacy-live-service.cjs ${port}`;
if (kind === 'systemd') {
return [
'[Unit]',
@@ -298,6 +297,10 @@ function adoptedFixture(root, kind, uid, gid) {
.createHash('sha256')
.update(sourcePath)
.digest('hex'),
sourceSha256: crypto
.createHash('sha256')
.update(fs.readFileSync(sourcePath))
.digest('hex'),
recoverySha256: crypto
.createHash('sha256')
.update(fs.readFileSync(recoveryPath))