Skip to content

Commit

Permalink
fix: releaserc fix for binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
lili2311 committed May 27, 2021
1 parent 8351a39 commit 82d047a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
44 changes: 22 additions & 22 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@
{
"//": "build the macos",
"path": "@semantic-release/exec",
"cmd": "npx [email protected] dist/index.js -r './dist/**/*.js' -t mac-x64-10.21.0 -o snyk2spdx-macos"
"cmd": "npx [email protected] dist/index.js -r './dist/**/*.js' -t mac-x64-10.21.0 -o snyk2spdx-macos"
},
{
"//": "build the linux",
"path": "@semantic-release/exec",
"cmd": "npx [email protected] dist/index.js -r './dist/**/*.js' -t linux-x64-12.16.2 -o snyk2spdx-linux"
"cmd": "npx [email protected] dist/index.js -r './dist/**/*.js' -t linux-x64-12.16.2 -o snyk2spdx-linux"
},
{
"//": "build the windows binaries",
"path": "@semantic-release/exec",
"cmd": "npx [email protected] dist/index.js -r './dist/**/*.js' -t windows-x64-10.16.0 -o snyk2spdx-win.exe"
"cmd": "npx [email protected] dist/index.js -r './dist/**/*.js' -t windows-x64-10.16.0 -o snyk2spdx-win.exe"
},
{
"//": "shasum all binaries",
"path": "@semantic-release/exec",
"cmd": "shasum -a 256 snyk2spdx-linux > snyk2spdx-linux.sha256 && shasum -a 256 snyk2spdx-macos > snyk2spdx-macos.sha256 && shasum -a 256 snyk2spdx-win.exe > snyk2spdx-win.exe.sha256"
"cmd": "shasum -a 256 snyk2spdx-linux > snyk2spdx-linux.sha256 && shasum -a 256 snyk2spdx-macos > snyk2spdx-macos.sha256 && shasum -a 256 snyk2spdx-win.exe > snyk2spdx-win.exe.sha256"
},
{
"//": "removes the file we use to identify a build as a standalone binary",
Expand All @@ -38,34 +38,34 @@
"path": "@semantic-release/github",
"assets": [
{
"path": "./ snyk2spdx-linux",
"name": " snyk2spdx-linux",
"label": " snyk2spdx-linux"
"path": "./snyk2spdx-linux",
"name": "snyk2spdx-linux",
"label": "snyk2spdx-linux"
},
{
"path": "./ snyk2spdx-linux.sha256",
"name": " snyk2spdx-linux.sha256",
"label": " snyk2spdx-linux.sha256"
"path": "./snyk2spdx-linux.sha256",
"name": "snyk2spdx-linux.sha256",
"label": "snyk2spdx-linux.sha256"
},
{
"path": "./ snyk2spdx-macos",
"name": " snyk2spdx-macos",
"label": " snyk2spdx-macos"
"path": "./snyk2spdx-macos",
"name": "snyk2spdx-macos",
"label": "snyk2spdx-macos"
},
{
"path": "./ snyk2spdx-macos.sha256",
"name": " snyk2spdx-macos.sha256",
"label": " snyk2spdx-macos.sha256"
"path": "./snyk2spdx-macos.sha256",
"name": "snyk2spdx-macos.sha256",
"label": "snyk2spdx-macos.sha256"
},
{
"path": "./ snyk2spdx-win.exe",
"name": " snyk2spdx-win.exe",
"label": " snyk2spdx-win.exe"
"path": "./snyk2spdx-win.exe",
"name": "snyk2spdx-win.exe",
"label": "snyk2spdx-win.exe"
},
{
"path": "./ snyk2spdx-win.exe.sha256",
"name": " snyk2spdx-win.exe.sha256",
"label": " snyk2spdx-win.exe.sha256"
"path": "./snyk2spdx-win.exe.sha256",
"name": "snyk2spdx-win.exe.sha256",
"label": "snyk2spdx-win.exe.sha256"
}
]
}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"build-watch": "tsc -w",
"prepare": "npm run build",
"snyk-test": "snyk test",
"pkg-binaries": "npx [email protected] dist/index.js -r './dist/**/*.js' -t mac-x64-10.21.0 -o snyk2spdx-macos" },
"pkg-binaries": "npx [email protected] dist/index.js -r './dist/**/*.js' -t mac-x64-10.21.0 -o snyk2spdx-macos"
},
"bin": {
"snyk2spdx": "dist/index.js"
},
Expand Down

0 comments on commit 82d047a

Please sign in to comment.