Skip to content

Commit

Permalink
build: default release:package to the current platform
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
  • Loading branch information
ShGKme committed Nov 15, 2024
1 parent ead363c commit 8cc6254
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ npm run package:windows
```md
> 📥 Download Binaries on https://github.com/nextcloud-releases/talk-desktop/releases/tag/v$(version)
```
9. Package release for specified platforms:
9. Package release on each platform separately:
```sh
npm run release:package -- --windows --linux --mac
npm run release:package
```
10. Upload packages to the GitHub Releases on [nextcloud-releases/talk-desktop](https://github.com/nextcloud-releases/talk-desktop/releases/lastest)
11. Publish both releases on GitHub Releases
Expand Down
7 changes: 5 additions & 2 deletions scripts/prepare-release-packages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ function help() {
echo`Prepare release packages for Talk Desktop with Talk in ${TALK_PATH}
Usage: npm run release:package -- --linux --mac --windows --version=v20.0.0
If no platform is specified, the current platform will be used.
If no version is specified, the stable version from package.json will be used.
Args:
--help - show help
Expand All @@ -50,9 +52,10 @@ function help() {
async function prepareRelease() {
const version = argv.version ?? packageJson.talk.stable

// Validate arguments
// Default to the current platform
if (!argv.windows && !argv.linux && !argv.mac) {
exit('❌ You must specify at least one of --windows, --linux or --mac', 1)
const platform = process.platform === 'darwin' ? 'mac' : process.platform === 'win32' ? 'windows' : 'linux'
argv[platform] = true
}

echo`Packaging Nextcloud Talk v${packageJson.version} with Talk ${version}...`
Expand Down

0 comments on commit 8cc6254

Please sign in to comment.