fix: deb pack privileges
MODIFY
src/commands/pack/deb.ts
src/commands/pack/deb.ts
@@ -75,8 +75,8 @@ export default class PackDeb extends Command {
await qq.write([workspace, 'DEBIAN/control'], scripts.control(buildConfig, debArch(arch)))
await qq.chmod([workspace, 'usr/lib', config.dirname, 'bin', config.bin], 0o755)
await qq.x(`ln -s "../lib/${config.dirname}/bin/${config.bin}" "${workspace}/usr/bin/${config.bin}"`)
- await qq.x(`chown -R root "${workspace}"`)
- await qq.x(`chgrp -R root "${workspace}"`)
+ await qq.x(`sudo chown -R root "${workspace}"`)
+ await qq.x(`sudo chgrp -R root "${workspace}"`)
await qq.x(`dpkg --build "${workspace}" "${qq.join(dist, versionedDebBase)}"`)
}

fix: deb pack privileges (#987)