Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
dd75480
Add offline native-only embedded legal resources and understated lega…
masarray Nov 17, 2026
33ee292
Add offline native-only embedded legal resources and understated lega…
masarray Nov 17, 2026
1867e9e
Add offline native-only embedded legal resources and understated lega…
masarray Nov 17, 2026
c7ac2b7
Embed legal terms into JUCE binary and installer's native resource flow
masarray Nov 17, 2026
4768598
Embed legal terms into JUCE binary and installer's native resource flow
masarray Nov 17, 2026
4d33412
Embed legal terms into JUCE binary and installer's native resource flow
masarray Nov 17, 2026
4e03b96
Keep release directories clean while independently verifying embedded…
masarray Nov 17, 2026
70dadfb
Keep release directories clean while independently verifying embedded…
masarray Nov 17, 2026
3562ea2
Keep release directories clean while independently verifying embedded…
masarray Nov 17, 2026
9320306
Keep release directories clean while independently verifying embedded…
masarray Nov 17, 2026
27ec3ea
Finish cross-platform embedded legal packaging and no-clutter install…
masarray Nov 17, 2026
accabb2
Finish cross-platform embedded legal packaging and no-clutter install…
masarray Nov 17, 2026
09c12f0
Finish cross-platform embedded legal packaging and no-clutter install…
masarray Nov 17, 2026
ed2a5b9
Test compiled legal scope, native-only UI and clean release packages
masarray Nov 17, 2026
5eee50f
Document app-embedded licenses and guard resource changes in fast CI
masarray Nov 17, 2026
5fdaf90
Document app-embedded licenses and guard resource changes in fast CI
masarray Nov 17, 2026
547835b
Document app-embedded licenses and guard resource changes in fast CI
masarray Nov 17, 2026
eef8734
Align installer and ImmerSIB release contracts with embedded legal po…
masarray Nov 17, 2026
08fdea2
Align installer and ImmerSIB release contracts with embedded legal po…
masarray Nov 17, 2026
8ddf19a
Avoid duplicate VB-CABLE notice payload; keep one canonical vendor copy
masarray Nov 17, 2026
4f0aa6a
Use unambiguous alphanumeric JUCE BinaryData identifiers for all lega…
masarray Nov 17, 2026
2934bcb
Use unambiguous alphanumeric JUCE BinaryData identifiers for all lega…
masarray Nov 17, 2026
7354deb
Use unambiguous alphanumeric JUCE BinaryData identifiers for all lega…
masarray Nov 17, 2026
0ad0b43
Fix CMake legal resource glob to match alphanumeric embedded source f…
masarray Nov 17, 2026
6c9d250
Make seven legal resources explicit and deterministic across incremen…
masarray Nov 17, 2026
ccb8681
Clean exact legacy legal files on upgrade and avoid installing redund…
masarray Nov 17, 2026
8df4f3c
Test real legacy-document cleanup during safe in-place Inno upgrades
masarray Nov 17, 2026
f6606c9
Assert production installer FAT migrates legacy license files without…
masarray Nov 17, 2026
c2e55e9
Restore legal dialog keyboard focus to visible More menu summary
masarray Nov 17, 2026
70d4891
Add real Chromium native-only legal center visual and interaction audit
masarray Nov 17, 2026
c0a9688
Add scoped real Chromium legal-center screenshots and keyboard intera…
masarray Nov 17, 2026
4c254d8
Guard legacy cleanup and real-browser legal UX coverage in fast contr…
masarray Nov 17, 2026
0407a5f
Polish compact legal footer and remove duplicate main landmark from m…
masarray Nov 17, 2026
47da72d
Merge latest main (ImmerSIB alpha.25) into embedded AGPL legal center
masarray Nov 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .github/workflows/imersip-p92-single-engine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,12 @@ jobs:
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
& ./scripts/verify_native_windows_artifact.ps1 -OutputDir dist
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
# The release verifier uses a strict dist/ allowlist. Attach the
# acoustic FAT and MIT KEMAR attribution OUTSIDE verified dist/,
# not by making unverified changes to the portable application.
# The release verifier scans the compiled EXE for the full MIT KEMAR
# notice and AGPLv3. Only the field-test instruction remains outside
# verified dist/; don't scatter redundant legal files in artifacts.
New-Item -ItemType Directory -Path field_candidate -Force | Out-Null
Copy-Item -LiteralPath dist -Destination field_candidate/ArSonMix-Portable -Recurse
Copy-Item -LiteralPath docs/IMERSIP_P92_SINGLE_NATIVE_ENGINE_FAT_20261116.md -Destination field_candidate/IMERSIP_P92_FIELD_FAT.md
Copy-Item -LiteralPath docs/THIRD_PARTY_8D_SONKU_HRTF.md -Destination field_candidate/THIRD_PARTY_8D_SONKU_HRTF.md
- uses: actions/upload-artifact@v4
with:
name: ImerSip-P92-Shared-Core-Windows-x64-${{ github.run_id }}
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/release-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ on:
- 'scripts/build_verify_windows_installer.ps1'
- 'scripts/test_inno_graceful_update_windows.ps1'
- 'tests/license_distribution_contract.test.mjs'
- 'scripts/verify_embedded_legal.py'
- 'web/approved-native-legal.js'
- 'src/EmbeddedLegalResources.h'
- 'src/Main.cpp'
- 'scripts/build_approved_native_gui.py'
- 'CMakeLists.txt'
- 'site/index.html'
- 'site/downloads.js'
- 'scripts/build_release_catalog.py'
Expand Down Expand Up @@ -39,6 +45,12 @@ on:
- 'scripts/build_verify_windows_installer.ps1'
- 'scripts/test_inno_graceful_update_windows.ps1'
- 'tests/license_distribution_contract.test.mjs'
- 'scripts/verify_embedded_legal.py'
- 'web/approved-native-legal.js'
- 'src/EmbeddedLegalResources.h'
- 'src/Main.cpp'
- 'scripts/build_approved_native_gui.py'
- 'CMakeLists.txt'
- 'scripts/build_release_catalog.py'
- 'scripts/verify_release_setup_zip.py'
- 'tests/test_release_setup_zip.py'
Expand Down Expand Up @@ -70,6 +82,8 @@ jobs:
run: |
node --check site/downloads.js
node --test tests/license_distribution_contract.test.mjs
python scripts/verify_embedded_legal.py --self-test
node --check web/approved-native-legal.js
node --test tests/downloads_runtime_contract.test.mjs
node --check scripts/release_ci_dispatch.mjs
node --test tests/release_ci_dispatch_contract.test.mjs
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/ui-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,32 @@ jobs:
- name: Block incomplete product release only when preparing product review
if: ${{ github.event_name == 'pull_request' && !github.event.pull_request.draft && startsWith(github.head_ref, 'integration/product-') }}
run: node scripts/check_console_puzzle.mjs --release
embedded-legal-center:
name: Embedded AGPL center real Chromium UX (2 sizes)
needs: quick
if: ${{ github.event_name == 'pull_request' && startsWith(github.head_ref, 'feat/embedded-premium-legal-') }}
runs-on: ubuntu-latest
timeout-minutes: 12
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Chromium for native-only legal UI proof
run: |
python -m pip install playwright
python -m playwright install --with-deps chromium
- name: Verify offline legal tabs, source action, visual bounds and focus
run: python tests/embedded_legal_center_chromium_smoke.py
- name: Preserve actual legal-center screenshots
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: ArSonMix-Embedded-AGPL-UX-${{ github.run_id }}
path: arsonmix-legal-center-*.png
if-no-files-found: ignore
retention-days: 7

gain-metal-knob-preview:
name: GAIN metal knob Chromium FAT (5 viewports)
needs: quick
Expand Down
40 changes: 40 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ file(GLOB_RECURSE ARMIX_APPROVED_GUI_SOURCE_INPUTS CONFIGURE_DEPENDS
list(APPEND ARMIX_APPROVED_GUI_SOURCE_INPUTS
"${CMAKE_CURRENT_SOURCE_DIR}/web/approved-native-bridge.js"
"${CMAKE_CURRENT_SOURCE_DIR}/web/approved-native-context-menu.js"
"${CMAKE_CURRENT_SOURCE_DIR}/web/approved-native-legal.js"
"${CMAKE_CURRENT_SOURCE_DIR}/scripts/build_approved_native_gui.py"
"${CMAKE_CURRENT_SOURCE_DIR}/scripts/build_pages.py"
"${CMAKE_CURRENT_SOURCE_DIR}/scripts/compose_native_peq.py")
Expand Down Expand Up @@ -289,9 +290,48 @@ if(ARMIX_IMMERSIB_RELEASE_CANDIDATE)
list(APPEND ARMIX_IMERSIB_SCENE_PNG_SOURCES "${scene}")
endforeach()
endif()
# Every original and third-party notice is compiled into the same native JUCE
# executable. No adjacent legal .txt/.md files in any installed/portable tree.
# Keep these resource basenames stable, alphanumeric names: EmbeddedLegalResources.h maps them.
set(ARMIX_LEGAL_EMBED_DIR "${CMAKE_CURRENT_BINARY_DIR}/approved_legal")
file(MAKE_DIRECTORY "${ARMIX_LEGAL_EMBED_DIR}")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/LICENSE"
"${ARMIX_LEGAL_EMBED_DIR}/armixagpl.txt" COPYONLY)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/LICENSE-NOTICE.txt"
"${ARMIX_LEGAL_EMBED_DIR}/armixnotice.txt" COPYONLY)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/docs/THIRD_PARTY_8D_SONKU_HRTF.md"
"${ARMIX_LEGAL_EMBED_DIR}/armixhrirmit.txt" COPYONLY)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/third_party/signalsmith/LICENSE-STRETCH.txt"
"${ARMIX_LEGAL_EMBED_DIR}/armixsignalsmithstretch.txt" COPYONLY)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/third_party/signalsmith/LICENSE-LINEAR.txt"
"${ARMIX_LEGAL_EMBED_DIR}/armixsignalsmithlinear.txt" COPYONLY)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/web/assets/fonts/OFL-LICENSE-Inter.txt"
"${ARMIX_LEGAL_EMBED_DIR}/armixinterofl.txt" COPYONLY)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/installer/VB-CABLE-NOTICE.txt"
"${ARMIX_LEGAL_EMBED_DIR}/armixvbcablenotice.txt" COPYONLY)
# Explicit allowlist avoids picking up stale resources from an earlier
# incremental configure and keeps BinaryData contents reproducible.
set(ARMIX_LEGAL_RESOURCE_FILES
"${ARMIX_LEGAL_EMBED_DIR}/armixagpl.txt"
"${ARMIX_LEGAL_EMBED_DIR}/armixnotice.txt"
"${ARMIX_LEGAL_EMBED_DIR}/armixhrirmit.txt"
"${ARMIX_LEGAL_EMBED_DIR}/armixsignalsmithstretch.txt"
"${ARMIX_LEGAL_EMBED_DIR}/armixsignalsmithlinear.txt"
"${ARMIX_LEGAL_EMBED_DIR}/armixinterofl.txt"
"${ARMIX_LEGAL_EMBED_DIR}/armixvbcablenotice.txt")
list(LENGTH ARMIX_LEGAL_RESOURCE_FILES ARMIX_LEGAL_RESOURCE_COUNT)
if(NOT ARMIX_LEGAL_RESOURCE_COUNT EQUAL 7)
message(FATAL_ERROR "All seven exact-source legal documents must be embedded")
endif()
foreach(ARMIX_LEGAL_RESOURCE IN LISTS ARMIX_LEGAL_RESOURCE_FILES)
if(NOT EXISTS "${ARMIX_LEGAL_RESOURCE}")
message(FATAL_ERROR "Missing legal BinaryData source: ${ARMIX_LEGAL_RESOURCE}")
endif()
endforeach()
juce_add_binary_data(ARMixAssets SOURCES
"${ARMIX_APPROVED_GUI_DIR}/index.html" ${ARMIX_APPROVED_GUI_BINARIES}
${ARMIX_GUITAR_SKIN_PNGS}
${ARMIX_LEGAL_RESOURCE_FILES}
"${ARMIX_BRAND_DIR}/arsonmix-256.png"
${ARMIX_IMERSIB_SCENE_PNG_SOURCES})
target_include_directories(ARMixConsole PRIVATE "${ARMIX_APPROVED_GUI_DIR}")
Expand Down
12 changes: 7 additions & 5 deletions LICENSE-NOTICE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ SPDX-License-Identifier: AGPL-3.0-only
The original ArSonMix digital mixer application, native mixing/routing
implementation, original GUI/bridge source, and ArSonMix-owned native built-in
effects are licensed under the GNU Affero General Public License, version 3
only (AGPL-3.0-only). The complete terms are in the accompanying LICENSE.
only (AGPL-3.0-only). The complete terms are in the source repository
LICENSE and are embedded in the native ArSonMix executable (More > About &
Licenses), readable offline without separate files in the installation folder.

Native built-in effects in this repository include Parametric EQ, Compressor,
Harmonice, Vocal Delay, 8D-SonKu, Guitar FX Rig, and ImmerSIB where built and
Expand All @@ -20,10 +22,10 @@ Third-party materials are NOT relicensed by this notice:
- JUCE and its modules, Steinberg VST3 and ASIO SDKs, and independently
installed or optional FactoryFX VST3 plugins retain their own applicable
terms, distribution permissions and requirements.
- MIT KEMAR/HRIR data attribution: THIRD_PARTY_8D_SONKU_HRTF.md.
- Vendored Signalsmith components: LICENSE-SIGNALSMITH-STRETCH.txt and
LICENSE-SIGNALSMITH-LINEAR.txt.
- Embedded Inter font: OFL-LICENSE-Inter.txt.
- MIT KEMAR/HRIR attribution: docs/THIRD_PARTY_8D_SONKU_HRTF.md.
- Vendored Signalsmith components: third_party/signalsmith/LICENSE-STRETCH.txt
and LICENSE-LINEAR.txt.
- Embedded Inter font: web/assets/fonts/OFL-LICENSE-Inter.txt.
- Optional VB-Audio VB-CABLE driver: ThirdParty/VB-Audio/VB-CABLE-NOTICE.txt
in the Windows installer; the vendor's own usage/licensing terms apply.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Windows alpha builds are intended for field testing, not certified low-latency m

## License — mixer and native built-in FX

**AGPL-3.0-only (GNU Affero General Public License version 3 only)** applies to original ArSonMix mixer code, routing and JUCE host, original desktop/web GUI implementation, and ArSonMix-owned **native built-in FX**, including EQ, Compressor, Harmonice, Vocal Delay, 8D-SonKu, Guitar FX and feature-gated ImmerSIB. See the complete [LICENSE](LICENSE) and [LICENSE-NOTICE.txt](LICENSE-NOTICE.txt). Source code and release tags are available in this repository for recipients of the application.
**AGPL-3.0-only (GNU Affero General Public License version 3 only)** applies to original ArSonMix mixer code, routing and JUCE host, original desktop/web GUI implementation, and ArSonMix-owned **native built-in FX**, including EQ, Compressor, Harmonice, Vocal Delay, 8D-SonKu, Guitar FX and feature-gated ImmerSIB. See the complete [LICENSE](LICENSE) and [LICENSE-NOTICE.txt](LICENSE-NOTICE.txt). In native desktop builds, open **More > About & Licenses** to read the complete AGPL and bundled third-party notices offline; they are embedded inside ArSonMix.exe/the macOS or Linux executable, not scattered across the install directory. The Windows installer also embeds the same source notices without a separate agreement screen. Source code and release tags are available in this repository for recipients of the application.

Third-party components are **not automatically relicensed**: JUCE, VST3/ASIO SDKs, MIT-licensed KEMAR/HRIR and Signalsmith materials, Inter font, VB-CABLE, and independently installed/approved FactoryFX VST3 may carry separate terms. Refer to distributed notices and `third_party/`. AGPL does not grant a redistribution licence for commercial VST3 plugins.

Expand Down
29 changes: 21 additions & 8 deletions installer/ArSonMix.iss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ SetupMutex=ArSonMix.PerUserInstaller.SingleInstance
; WM_CLOSE followed by full process exit is required before replacing EXE.
CloseApplications=no
RestartApplications=no
; Clean only the exact legacy top-level documents installed by <= alpha.24.
; No wildcards, recursion, Studio data, shows, presets or third-party dirs.
; Inno processes [InstallDelete] before [Files], including in-place upgrades.
[InstallDelete]
Type: files; Name: "{app}\LICENSE"
Type: files; Name: "{app}\LICENSE-NOTICE.txt"
Type: files; Name: "{app}\LICENSE-SIGNALSMITH-STRETCH.txt"
Type: files; Name: "{app}\LICENSE-SIGNALSMITH-LINEAR.txt"
Type: files; Name: "{app}\OFL-LICENSE-Inter.txt"
Type: files; Name: "{app}\THIRD_PARTY_8D_SONKU_HRTF.md"
Type: files; Name: "{app}\README.md"
[Files]
; The vendor standard cable ZIP is kept AS IS, with mandatory attribution.
; Do not redistribute extra A+B / C+D driver packages.
Expand All @@ -57,14 +68,16 @@ Source: "ArSonMixUpdateShutdown.ps1"; Flags: dontcopy
Source: "ArSonMixAutoUpdate.ps1"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#SourceRoot}\verified-gui.exe"; DestDir: "{app}"; DestName: "ArSonMix.exe"; Flags: ignoreversion
Source: "{#SourceRoot}\BUILD_PROVENANCE.json"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#SourceRoot}\README.md"; DestDir: "{app}"; Flags: ignoreversion
; Ship original AGPLv3 and third-party terms without new installer UI steps.
Source: "{#SourceRoot}\LICENSE"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#SourceRoot}\LICENSE-NOTICE.txt"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#SourceRoot}\LICENSE-SIGNALSMITH-STRETCH.txt"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#SourceRoot}\LICENSE-SIGNALSMITH-LINEAR.txt"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#SourceRoot}\OFL-LICENSE-Inter.txt"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#SourceRoot}\THIRD_PARTY_8D_SONKU_HRTF.md"; DestDir: "{app}"; Flags: ignoreversion
; The complete original and vendor legal documents are embedded both in
; ArSonMix.exe (offline About & Licenses) and inside this Setup payload.
; dontcopy = not installed into {app}; no clickthrough wizard or file litter.
Source: "..\LICENSE"; Flags: dontcopy
Source: "..\LICENSE-NOTICE.txt"; Flags: dontcopy
Source: "..\docs\THIRD_PARTY_8D_SONKU_HRTF.md"; Flags: dontcopy
Source: "..\third_party\signalsmith\LICENSE-STRETCH.txt"; Flags: dontcopy
Source: "..\third_party\signalsmith\LICENSE-LINEAR.txt"; Flags: dontcopy
Source: "..\web\assets\fonts\OFL-LICENSE-Inter.txt"; Flags: dontcopy
; VB-CABLE vendor notice is already inside the vendor [Files] payload.
Source: "{#SourceRoot}\FactoryFX\*"; DestDir: "{app}\FactoryFX"; Flags: ignoreversion recursesubdirs createallsubdirs skipifsourcedoesntexist
[Icons]
Name: "{autoprograms}\ArSonMix"; Filename: "{app}\ArSonMix.exe"; WorkingDir: "{app}"
Expand Down
5 changes: 4 additions & 1 deletion scripts/build_approved_native_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
NATIVE_ADAPTER = ROOT / "web" / "approved-native-bridge.js"
ADAPTER_MARKER = ('<script defer src="assets/approved-native-contract.js"></script>\n'
'<script defer src="assets/approved-native-bridge.js"></script>\n'
'<script defer src="assets/approved-native-context-menu.js"></script>\n')
'<script defer src="assets/approved-native-context-menu.js"></script>\n'
'<script defer src="assets/approved-native-legal.js"></script>\n')
SCHEMA = "arsonmix.approved-native-pages-bundle.v2"


Expand Down Expand Up @@ -354,6 +355,8 @@ def stage(out: Path) -> dict:
shutil.copy2(NATIVE_ADAPTER, out / "assets" / "approved-native-bridge.js")
shutil.copy2(ROOT / "web" / "approved-native-context-menu.js",
out / "assets" / "approved-native-context-menu.js")
shutil.copy2(ROOT / "web" / "approved-native-legal.js",
out / "assets" / "approved-native-legal.js")
shutil.copy2(ROOT / "web" / "approved-native-contract.js",
out / "assets" / "approved-native-contract.js")
native = native_html(approved.decode("utf-8")).encode("utf-8")
Expand Down
48 changes: 23 additions & 25 deletions scripts/build_verify_windows_installer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ $fixtureProcess=$null
try {
New-Item -ItemType Directory -Force -Path $stage | Out-Null
Copy-Item -LiteralPath $exe -Destination (Join-Path $stage "verified-gui.exe")
foreach($item in @("BUILD_PROVENANCE.json","README.md",
"LICENSE","LICENSE-NOTICE.txt",
"LICENSE-SIGNALSMITH-STRETCH.txt",
"LICENSE-SIGNALSMITH-LINEAR.txt","OFL-LICENSE-Inter.txt",
"THIRD_PARTY_8D_SONKU_HRTF.md")){
foreach($item in @("BUILD_PROVENANCE.json")){
Copy-Item -LiteralPath (Join-Path $dist $item) -Destination (Join-Path $stage $item)
}
Copy-Item -LiteralPath "assets/icon/arsonmix-app.ico" -Destination (Join-Path $stage "arsonmix-app.ico")
Expand Down Expand Up @@ -70,26 +66,15 @@ try {
}
$installedManifest=Get-Content -LiteralPath (Join-Path $install "BUILD_PROVENANCE.json") -Raw -Encoding UTF8 | ConvertFrom-Json
if($installedManifest.sourceCommit -ne $sha){throw "Wrong installed provenance"}
$installedNotice = Join-Path $install "THIRD_PARTY_8D_SONKU_HRTF.md"
if(-not (Test-Path -LiteralPath $installedNotice -PathType Leaf) -or
(Get-FileHash -LiteralPath $installedNotice -Algorithm SHA256).Hash.ToLowerInvariant() -ne
$manifest.hrirNoticeSha256) {
throw "Installed third-party KEMAR/MIT notice missing or altered"
}
# Confirm Inno preserved all mandatory legal texts byte-for-byte.
$installedLicenses = [ordered]@{
"LICENSE" = "licenseTextSha256"
"LICENSE-NOTICE.txt" = "licenseNoticeSha256"
"LICENSE-SIGNALSMITH-STRETCH.txt" = "signalsmithStretchLicenseSha256"
"LICENSE-SIGNALSMITH-LINEAR.txt" = "signalsmithLinearLicenseSha256"
"OFL-LICENSE-Inter.txt" = "interOflLicenseSha256"
}
foreach($name in $installedLicenses.Keys){
$installedPath = Join-Path $install $name
$hashField = $installedLicenses[$name]
if(-not (Test-Path -LiteralPath $installedPath -PathType Leaf) -or
(Get-FileHash -LiteralPath $installedPath -Algorithm SHA256).Hash.ToLowerInvariant() -ne $manifest.$hashField){
throw "Installed licence missing or altered: $name"
# Full AGPL and third-party terms live in ArSonMix.exe and Setup itself.
# The installed directory must have NO redundant top-level legal files.
& python scripts/verify_embedded_legal.py --binary $installedExe
if($LASTEXITCODE -ne 0){throw "Installed EXE missing exact-source embedded licenses"}
Comment thread
masarray marked this conversation as resolved.
Resolved
foreach($name in @("LICENSE","LICENSE-NOTICE.txt",
"LICENSE-SIGNALSMITH-STRETCH.txt","LICENSE-SIGNALSMITH-LINEAR.txt",
"OFL-LICENSE-Inter.txt","THIRD_PARTY_8D_SONKU_HRTF.md")){
if(Test-Path -LiteralPath (Join-Path $install $name)){
throw "Installer left a redundant top-level legal document: $name"
}
}
# REAL Windows in-place UPDATE test: replace the *test-installed* PE
Expand All @@ -116,6 +101,14 @@ try {
if(-not (Test-Path -LiteralPath $fixtureReady)){
throw "Installed upgrade fixture did not show its Windows message-loop window"
}
# Upgrade fixture: migration from the old alpha.24 footprint must not
# leave the old top-level licenses/README in the installed application.
$legacyLooseFiles=@("LICENSE","LICENSE-NOTICE.txt",
"LICENSE-SIGNALSMITH-STRETCH.txt","LICENSE-SIGNALSMITH-LINEAR.txt",
"OFL-LICENSE-Inter.txt","THIRD_PARTY_8D_SONKU_HRTF.md","README.md")
foreach($name in $legacyLooseFiles){
"legacy-installer-document" | Set-Content -LiteralPath (Join-Path $install $name)
}
$installSentinel=Join-Path $install "arsonmix-user-file.keep"
"preserve-user-files-across-upgrade" | Set-Content -LiteralPath $installSentinel
$upgradeLog=Join-Path $env:RUNNER_TEMP ("arsonmix-upgrade-"+[guid]::NewGuid().ToString("N")+".log")
Expand Down Expand Up @@ -146,6 +139,11 @@ try {
(Test-Path -LiteralPath (Join-Path $install "portable_mode.txt"))){
throw "In-place update failed verified EXE replacement or data preservation"
}
foreach($name in $legacyLooseFiles){
if(Test-Path -LiteralPath (Join-Path $install $name)){
throw "Old loose legal file survived in-place update: $name"
}
}
Write-Host "INNO_GRACEFUL_UPDATE_PASS: running app Windows session close, verified PE replacement, user files preserved"
$uninstall=Join-Path $install "unins000.exe"
if(-not (Test-Path -LiteralPath $uninstall -PathType Leaf)){throw "Uninstaller missing"}
Expand Down
Loading
Loading