Skip to content

Add task for packaging release #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 7, 2019
Merged

Conversation

code-asher
Copy link
Member

No description provided.

@code-asher code-asher requested a review from kylecarbs March 5, 2019 18:38
@code-asher code-asher force-pushed the feature/release-script branch 2 times, most recently from 2b35d4f to 5478f3a Compare March 5, 2019 18:39
@code-asher code-asher force-pushed the feature/release-script branch 2 times, most recently from b9894d3 to 69133cb Compare March 6, 2019 19:17
@kylecarbs
Copy link
Member

Optimally we'd fix the v1.0.0 output when launching the binary as well. It'd be helpful to have the version once we add automatic-updates too.

@code-asher code-asher force-pushed the feature/release-script branch from 561e786 to 85c192e Compare March 6, 2019 22:48
runner.cwd = releasePath;
await os.platform() === "linux"
? runner.execute("tar", ["-cvzf", `${archiveName}.tar.gz`, `${archiveName}`])
: runner.execute("zip", ["-r", `${archiveName}.zip`, `${archiveName}`]);
Copy link
Contributor

@MichaelDesantis MichaelDesantis Mar 6, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For our use case, is tar preferable to zip? And if so, is there any way for us to set a conditional based on whether or not said commands are installed rather than OS platform? Or is it inconsequential and/or not worth the time?

Copy link
Member Author

@code-asher code-asher Mar 6, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The goal is to provide tarballs for Linux builds and zips for Mac & Windows builds. This runs in the CI and is what will be available for download on the releases page.

@code-asher code-asher merged commit 994531d into master Mar 7, 2019
@code-asher code-asher deleted the feature/release-script branch March 7, 2019 00:15
code-asher added a commit that referenced this pull request Jun 19, 2019
* Add task for packaging release

* Modify package task to package a single binary

This is so it can be used as part of the build/release script.

* Package release as part of Travis deploy

* Set platform env var

* Add arch env var

* Make version available to the code

* Use tar for Linux and zip for Mac & Windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants