Skip to content
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

Add Windows Release Builds #114

Merged
merged 6 commits into from May 13, 2024
Merged

Add Windows Release Builds #114

merged 6 commits into from May 13, 2024

Conversation

jkmassel
Copy link
Contributor

@jkmassel jkmassel commented May 10, 2024

Proposed Changes

Creates signed Windows builds each time a new tag is created.

Testing Instructions

See https://a8c.slack.com/archives/C06DRMD6VPZ/p1715362399654439, note that each build is downloadable (and signed)

@jkmassel jkmassel force-pushed the add/windows-release-builds branch 2 times, most recently from bc9cce5 to 41f2956 Compare May 10, 2024 17:07
@jkmassel jkmassel force-pushed the add/windows-release-builds branch from 41f2956 to 36c9c16 Compare May 10, 2024 17:09
@jkmassel jkmassel requested review from a team, wojtekn and p-jackson May 10, 2024 17:34
@jkmassel jkmassel marked this pull request as ready for review May 10, 2024 17:35
@jkmassel jkmassel self-assigned this May 10, 2024
@jkmassel jkmassel added [Platform] Windows The issue is specific to the Windows platform. Tooling labels May 10, 2024
Copy link
Contributor

@mokagio mokagio left a comment

Choose a reason for hiding this comment

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

I haven't manually tested these due to them being build-and-release changes, but all looks good. Only left a few nitpicks.

Comment on lines +10 to +12
npm run make
If ($LastExitCode -ne 0) { Exit $LastExitCode }

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
npm run make
If ($LastExitCode -ne 0) { Exit $LastExitCode }
npm run make
If ($LastExitCode -ne 0) { Exit $LastExitCode }

Comment on lines +10 to +12
npm run make
If ($LastExitCode -ne 0) { Exit $LastExitCode }

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
npm run make
If ($LastExitCode -ne 0) { Exit $LastExitCode }
npm run make
If ($LastExitCode -ne 0) { Exit $LastExitCode }

install_gems
bundle exec fastlane distribute_release_build
agents:
queue: "mac" #
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
queue: "mac" #
queue: "mac"

Comment on lines 138 to 141
const releaseVersionZipFilename_mac = `https://cdn.a8c-ci.services/studio/studio-darwin-v${ version }.app.zip`;
const releaseVersionZipFilename_x64 = `https://cdn.a8c-ci.services/studio/studio-darwin-x64-v${ version }.app.zip`;
const releaseVersionZipFilename_arm64 = `https://cdn.a8c-ci.services/studio/studio-darwin-arm64-v${ version }.app.zip`;
const releaseVersionZipFilename_win32 = `https://cdn.a8c-ci.services/studio/studio-win32-v${ version }.exe`;
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting mix of camel- and snake- casing.

Did you use it to better visually distinguish the platform?

Did you consider:

Suggested change
const releaseVersionZipFilename_mac = `https://cdn.a8c-ci.services/studio/studio-darwin-v${ version }.app.zip`;
const releaseVersionZipFilename_x64 = `https://cdn.a8c-ci.services/studio/studio-darwin-x64-v${ version }.app.zip`;
const releaseVersionZipFilename_arm64 = `https://cdn.a8c-ci.services/studio/studio-darwin-arm64-v${ version }.app.zip`;
const releaseVersionZipFilename_win32 = `https://cdn.a8c-ci.services/studio/studio-win32-v${ version }.exe`;
const releaseVersionZipFilenameMac = `https://cdn.a8c-ci.services/studio/studio-darwin-v${ version }.app.zip`;
const releaseVersionZipFilenameX64 = `https://cdn.a8c-ci.services/studio/studio-darwin-x64-v${ version }.app.zip`;
const releaseVersionZipFilenameArm64 = `https://cdn.a8c-ci.services/studio/studio-darwin-arm64-v${ version }.app.zip`;
const releaseVersionZipFilenameWin32 = `https://cdn.a8c-ci.services/studio/studio-win32-v${ version }.exe`;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed in ed8c467

@mokagio mokagio mentioned this pull request May 13, 2024
1 task
mokagio and others added 2 commits May 13, 2024 12:43
* Extract logic to distribute builds in Fastlane

* DRY builds folder definition in Fastfile

* Remove leftover debug `puts`

* DRY S3 bucket name

* Fix a comment's wording

* DRY further

* DRY even more

* DRY commit, build, etc in Fastfile
@jkmassel jkmassel merged commit 99d8641 into trunk May 13, 2024
12 checks passed
@jkmassel jkmassel deleted the add/windows-release-builds branch May 13, 2024 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Platform] Windows The issue is specific to the Windows platform. Tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants