Skip to content

Commit 9017263

Browse files
committed
fix: Improved notarize script and added it to package.json file
1 parent b8caedf commit 9017263

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $ npm install -g codify
1818
$ codify COMMAND
1919
running command...
2020
$ codify (--version)
21-
codify/0.3.0 darwin-arm64 node-v20.15.1
21+
codify/0.3.1 darwin-arm64 node-v20.15.1
2222
$ codify --help [COMMAND]
2323
USAGE
2424
$ codify COMMAND
@@ -69,7 +69,7 @@ EXAMPLES
6969
$ codify apply
7070
```
7171

72-
_See code: [src/commands/apply/index.ts](https://github.com/kevinwang5658/codify/blob/v0.3.0/src/commands/apply/index.ts)_
72+
_See code: [src/commands/apply/index.ts](https://github.com/kevinwang5658/codify/blob/v0.3.1/src/commands/apply/index.ts)_
7373

7474
## `codify destroy`
7575

@@ -95,7 +95,7 @@ EXAMPLES
9595
$ codify destroy homebrew nvm
9696
```
9797

98-
_See code: [src/commands/destroy.ts](https://github.com/kevinwang5658/codify/blob/v0.3.0/src/commands/destroy.ts)_
98+
_See code: [src/commands/destroy.ts](https://github.com/kevinwang5658/codify/blob/v0.3.1/src/commands/destroy.ts)_
9999

100100
## `codify help [COMMAND]`
101101

@@ -142,7 +142,7 @@ EXAMPLES
142142
$ codify import homebrew nvm
143143
```
144144

145-
_See code: [src/commands/import.ts](https://github.com/kevinwang5658/codify/blob/v0.3.0/src/commands/import.ts)_
145+
_See code: [src/commands/import.ts](https://github.com/kevinwang5658/codify/blob/v0.3.1/src/commands/import.ts)_
146146

147147
## `codify plan`
148148

@@ -170,7 +170,7 @@ EXAMPLES
170170
$ codify plan
171171
```
172172

173-
_See code: [src/commands/plan/index.ts](https://github.com/kevinwang5658/codify/blob/v0.3.0/src/commands/plan/index.ts)_
173+
_See code: [src/commands/plan/index.ts](https://github.com/kevinwang5658/codify/blob/v0.3.1/src/commands/plan/index.ts)_
174174

175175
## `codify plugins`
176176

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,18 @@
9292
"repository": "kevinwang5658/codify",
9393
"scripts": {
9494
"build": "shx rm -rf dist && tsc -b",
95+
"build:release": "npm run pkg && ./scripts/notarize.sh",
9596
"lint": "tsc && eslint . --ext .ts",
9697
"postpack": "shx rm -f oclif.manifest.json",
97-
"pkg": "tsc && oclif pack macos -r .",
98+
"pkg": "shx rm -rf dist && tsc && oclif pack macos -r .",
9899
"posttest": "npm run lint",
99100
"prepack": "oclif manifest && oclif readme",
100101
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
101102
"version": "oclif readme && git add README.md",
102103
"start:dev": "./bin/dev.js",
103104
"start:vm": "npm run build && npm run pack:macos && npm run start:vm"
104105
},
105-
"version": "0.3.0",
106+
"version": "0.3.1",
106107
"bugs": "https://github.com/kevinwang5658/codify/issues",
107108
"keywords": [
108109
"oclif"

scripts/notarize.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
for filename in ../dist/macos/*.pkg; do
2+
for filename in ./dist/macos/*.pkg; do
33
echo "Uploading and notarizing $filename with Apple... (5-10 minutes)"
44
RESULT=$(
55
xcrun notarytool submit $filename \

0 commit comments

Comments
 (0)