diff --git a/src/commands/pack/macos.ts b/src/commands/pack/macos.ts index f7b3f10de..233423e0f 100644 --- a/src/commands/pack/macos.ts +++ b/src/commands/pack/macos.ts @@ -89,6 +89,16 @@ fi #remove application source distribution [ -e "/usr/local/lib/${config.dirname}" ] && rm -rf "/usr/local/lib/${config.dirname}" + +#remove application data directory +[ -e "${config.dataDir}" ] && rm -rf "${config.dataDir}" + +#remove application cache directory +[ -e "${config.cacheDir}" ] && rm -rf "${config.cacheDir}" + +#remove application config directory +[ -e "${config.configDir}" ] && rm -rf "${config.configDir}" + if [ $? -eq 0 ] then echo "[3/3] [DONE] Successfully deleted application" @@ -106,10 +116,22 @@ export default class PackMacos extends Command { static description = 'pack CLI into macOS .pkg' static flags = { - root: Flags.string({char: 'r', description: 'path to oclif CLI root', default: '.', required: true}), - 'additional-cli': Flags.string({description: `an Oclif CLI other than the one listed in config.bin that should be made available to the user -the CLI should already exist in a directory named after the CLI that is the root of the tarball produced by "oclif pack:tarballs"`, hidden: true}), - tarball: Flags.string({char: 't', description: 'optionally specify a path to a tarball already generated by NPM', required: false}), + root: Flags.string({ + char: 'r', + description: 'path to oclif CLI root', + default: '.', + required: true, + }), + 'additional-cli': Flags.string({ + description: `an Oclif CLI other than the one listed in config.bin that should be made available to the user +the CLI should already exist in a directory named after the CLI that is the root of the tarball produced by "oclif pack:tarballs"`, + hidden: true, + }), + tarball: Flags.string({ + char: 't', + description: 'optionally specify a path to a tarball already generated by NPM', + required: false, + }), } async run(): Promise { diff --git a/src/commands/pack/win.ts b/src/commands/pack/win.ts index 14ff65739..3f5e21df9 100644 --- a/src/commands/pack/win.ts +++ b/src/commands/pack/win.ts @@ -203,10 +203,22 @@ export default class PackWin extends Command { This command requires WINDOWS_SIGNING (prefixed with the name of your executable, e.g. OCLIF_WINDOWS_SIGNING_PASS) to be set in the environment` static flags = { - root: Flags.string({char: 'r', description: 'path to oclif CLI root', default: '.', required: true}), - 'additional-cli': Flags.string({description: `an Oclif CLI other than the one listed in config.bin that should be made available to the user -the CLI should already exist in a directory named after the CLI that is the root of the tarball produced by "oclif pack:tarballs"`, hidden: true}), - tarball: Flags.string({char: 't', description: 'optionally specify a path to a tarball already generated by NPM', required: false}), + root: Flags.string({ + char: 'r', + description: 'path to oclif CLI root', + default: '.', + required: true, + }), + 'additional-cli': Flags.string({ + description: `an Oclif CLI other than the one listed in config.bin that should be made available to the user +the CLI should already exist in a directory named after the CLI that is the root of the tarball produced by "oclif pack:tarballs"`, + hidden: true, + }), + tarball: Flags.string({ + char: 't', + description: 'optionally specify a path to a tarball already generated by NPM', + required: false, + }), } async run(): Promise {