Skip to content

Prepare a release archive that could be used without installation (portable) - #12264

Merged
kryksyh merged 1 commit into
masterfrom
keep_portable_build
Sep 23, 2026
Merged

kryksyh merged 1 commit into
masterfrom
keep_portable_build

Conversation

@kryksyh

@kryksyh kryksyh commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Resolves: #11932
Resolves: #11907

Create a portable (installerless, really) archive unconditionally, previously we skipped it on release builds

It is not fully portable, as it stores settings in the user's home directory: #12265

  • I signed CLA
  • This PR includes AI assistance
  • If the PR is AI-assisted, I have read, understood and complied with the guidelines for AI-assisted contributions
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

@coderabbitai

coderabbitai Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Advanced

Run ID: 30c37fc8-9f6a-463c-92fa-e27fd8a5f2fe

📥 Commits

Reviewing files that changed from the base of the PR and between e0c52d6 and cf8c943.

📒 Files selected for processing (1)
  • buildscripts/ci/windows/package.cmake

Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The Windows packaging script now creates a 7z archive for every PACK_TYPE, including MSI-producing modes. It copies the install directory to a versioned staging directory, creates the archive with cmake -E tar --format=7zip, fails with FATAL_ERROR if archive creation returns a nonzero status, and removes the staging directory afterward.

Estimated code review effort: 2 (Simple) | ~10 minutes

Sequence Diagram(s)

sequenceDiagram
  participant PackageScript as package.cmake
  participant StagingDirectory as archive staging directory
  participant CMakeTar as cmake -E tar
  participant ArtifactsDirectory as ARTIFACTS_DIR
  PackageScript->>StagingDirectory: Copy INSTALL_DIR contents
  PackageScript->>CMakeTar: Create 7z archive
  CMakeTar->>ArtifactsDirectory: Write Windows archive
  CMakeTar-->>PackageScript: Return status
  PackageScript->>StagingDirectory: Remove staging directory
Loading

Merge Risk: 🟡 Moderate · up to cf8c9

The release archive can contain an unsigned executable even when the MSI contains a signed one. Correct the packaging order before merging.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: preparing a release archive that does not require installation. It is specific and relevant, although slightly awkward in phrasing.
Description check ✅ Passed The description includes the issue reference, change summary, motivation, limitation, and required checklist. The AI-guideline item is correctly left unchecked because AI assistance is not declared.
Linked Issues check ✅ Passed Issue #11932 requests continued release of a portable Audacity 4 version in addition to the installer. buildscripts/ci/windows/package.cmake now creates Audacity-${BUILD_VERSION}-${PACKARCH}.7z fo…
Out of Scope Changes check ✅ Passed The changes remain within issue #11932. They stage the install contents, create the requested archive, handle archive failures, and remove temporary files. These changes support reliable portable-arch…

Warning

Linked repositories: Public OSS repositories can only analyze public repositories installed in this organization. No linked repositories were analyzed; skipped musescore/musescore.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Advanced

Run ID: fe592223-b509-4cd0-bcd9-af838d64f44c

📥 Commits

Reviewing files that changed from the base of the PR and between d6b1f18 and e0c52d6.

📒 Files selected for processing (1)
  • buildscripts/ci/windows/package.cmake

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.

Comment thread buildscripts/ci/windows/package.cmake Resolved
@kryksyh
kryksyh force-pushed the keep_portable_build branch from e0c52d6 to cf8c943 Compare September 23, 2026 15:31
@kryksyh
kryksyh merged commit b75e883 into master Sep 23, 2026
7 of 10 checks passed
@kryksyh
kryksyh deleted the keep_portable_build branch September 23, 2026 15:45
kryksyh added a commit that referenced this pull request Sep 23, 2026
Prepare a release archive that could be used without installation (portable)
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.

Release a portable version for Audacity 4 Publish Windows zips (portable) alongside the installer for releases

2 participants