Skip to content

Commit

Permalink
fix: deb pack privileges (#987)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vesther committed Oct 20, 2022
1 parent 185bff5 commit 5392841
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/pack/deb.ts
Expand Up @@ -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)}"`)
}

Expand Down

0 comments on commit 5392841

Please sign in to comment.