-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(packaging): fix deb packaging (#57)
- Loading branch information
Showing
3 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/node_modules/@oclif/dev-cli/lib/commands/pack/deb.js b/node_modules/@oclif/dev-cli/lib/commands/pack/deb.js | ||
index 885416e..deb28c3 100644 | ||
--- a/node_modules/@oclif/dev-cli/lib/commands/pack/deb.js | ||
+++ b/node_modules/@oclif/dev-cli/lib/commands/pack/deb.js | ||
@@ -73,8 +73,8 @@ class PackDeb extends command_1.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}.deb`)}"`); | ||
}; | ||
const arches = _.uniq(buildConfig.targets |