Skip to content

Commit

Permalink
fix: Change name to apple
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankit Gautam committed Jan 29, 2024
1 parent 89f0461 commit d9206a5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
[
"@semantic-release/exec",
{
"publishCmd": "mkdir tmp-assets && mv mac-x64-out/darwin/x64/SuperTerminal-darwin-x64-*.zip \"tmp-assets/SuperTerminal-darwin-x64-${nextRelease.version}.zip\" && mv ubuntu-out/zip/linux/x64/SuperTerminal-linux-x64-*.zip \"tmp-assets/SuperTerminal-linux-x64-${nextRelease.version}.zip\" && mv ubuntu-out/rpm/x64/super-terminal-*.rpm \"tmp-assets/super-terminal-${nextRelease.version}-1.x86_64.rpm\" && mv ubuntu-out/deb/x64/super-terminal*.deb \"tmp-assets/super-terminal_${nextRelease.version}_amd64.deb\" && mv windows-out/zip/win32/x64/SuperTerminal-win32-x64-*.zip \"tmp-assets/SuperTerminal-win32-x64-${nextRelease.version}.zip\" && mv windows-out/squirrel.windows/x64/SuperTerminal-*.exe \"tmp-assets/SuperTerminal-${nextRelease.version} Setup.exe\""
"publishCmd": "mkdir tmp-assets && mv mac-x64-out/darwin/x64/SuperTerminal-darwin-x64-*.zip \"tmp-assets/SuperTerminal-apple-x64-${nextRelease.version}.zip\" && mv ubuntu-out/zip/linux/x64/SuperTerminal-linux-x64-*.zip \"tmp-assets/SuperTerminal-linux-x64-${nextRelease.version}.zip\" && mv ubuntu-out/rpm/x64/super-terminal-*.rpm \"tmp-assets/super-terminal-${nextRelease.version}-1.x86_64.rpm\" && mv ubuntu-out/deb/x64/super-terminal*.deb \"tmp-assets/super-terminal_${nextRelease.version}_amd64.deb\" && mv windows-out/zip/win32/x64/SuperTerminal-win32-x64-*.zip \"tmp-assets/SuperTerminal-win32-x64-${nextRelease.version}.zip\" && mv windows-out/squirrel.windows/x64/SuperTerminal-*.exe \"tmp-assets/SuperTerminal-${nextRelease.version} Setup.exe\""
}
],
[
Expand Down
20 changes: 18 additions & 2 deletions src/run-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,26 @@ else {
stdio: 'inherit',
});
const packageJson = require('../package.json');
spawnSync('gh', ['release', 'upload', 'v' + packageJson.version, 'out/make/zip/darwin/arm64/*.zip'], {

spawnSync('mv', ['out/make/zip/darwin/arm64/*.zip', `out/SuperTerminal-apple-arm64-${packageJson.version}.zip`], {
cwd: path.join(__dirname, '..'),
shell: true,
stdio: 'inherit',
});
console.log('released version', packageJson.version);
spawnSync(
'gh',
[
'release',
'upload',
'v' + packageJson.version,
`out/SuperTerminal-apple-arm64-${packageJson.version}.zip`,
'--repo',
'bugwheels94/super-terminal',
],
{
cwd: path.join(__dirname, '..'),
shell: true,
stdio: 'inherit',
}
);
}

0 comments on commit d9206a5

Please sign in to comment.