Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

feat(release): a Windows installer beside the zip

Jareerd86d3a7b0b72
diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml
index 563ae20d..705f5c69 100644
--- a/.github/workflows/build-app.yml
+++ b/.github/workflows/build-app.yml
@@ -108,12 +108,14 @@ jobs:
target: x86_64-pc-windows-msvc
ffmpeg: win64
sherpa: win-x64
+ inno: x64compatible
- platform: windows
arch: aarch64
os: windows-11-arm
target: aarch64-pc-windows-msvc
ffmpeg: winarm64
sherpa: win-arm64
+ inno: arm64
runs-on: ${{ matrix.os }}
# The slowest target (Intel macOS, fat LTO) finishes in under half an
# hour. A job still running past this is stuck, not slow.
@@ -524,6 +526,19 @@ jobs:
# The sherpa-onnx runtime, set aside by the download step above.
Copy-Item "$env:SHERPA_DLL_DIR\*.dll" "stage\$name\"
Copy-Item LICENSE, THIRD_PARTY_NOTICES.md "stage\$name\"
+ # The installer, from the same folder, before it is zipped away:
+ # Inno Setup, which the x64 image carries and the ARM image is
+ # given. See assets/windows/concat.iss.
+ $iscc = "${env:ProgramFiles(x86)}\Inno Setup 6\ISCC.exe"
+ if (-not (Test-Path $iscc)) {
+ Write-Host "Installing Inno Setup"
+ choco install innosetup --no-progress -y | Out-Null
+ }
+ if (-not (Test-Path $iscc)) { throw "Inno Setup is not at $iscc" }
+ & $iscc "/DVersion=$env:VERSION" "/DArch=${{ matrix.inno }}" "/DSuffix=${{ matrix.arch }}" `
+ "/DStage=$PWD\stage\$name" "/DOut=$PWD\stage" assets\windows\concat.iss
+ if ($LASTEXITCODE -ne 0) { throw "Inno Setup failed with $LASTEXITCODE" }
+ if (-not (Test-Path "stage\$name-setup.exe")) { throw "stage\$name-setup.exe is not there" }
Compress-Archive -Path "stage\$name" -DestinationPath "stage\$name.zip"
Remove-Item -Recurse -Force "stage\$name"
diff --git a/assets/icons/concat.ico b/assets/icons/concat.ico
new file mode 100644
index 00000000..0021c063
Binary files /dev/null and b/assets/icons/concat.ico differ
diff --git a/assets/windows/concat.iss b/assets/windows/concat.iss
new file mode 100644
index 00000000..6ce47c5b
--- /dev/null
+++ b/assets/windows/concat.iss
@@ -0,0 +1,77 @@
+; Concat's Windows installer.
+;
+; Built by build-app.yml with Inno Setup from the very folder the zip is
+; made of, so the two ship the same files; the zip is the portable copy,
+; this is the one that puts Concat in the Start menu and can take it out
+; again. Everything it needs is handed in on the command line:
+;
+; iscc /DVersion=0.2.2 /DArch=x64compatible /DSuffix=x86_64 ^
+; /DStage=C:\...\stage\Concat-0.2.2-windows-x86_64 /DOut=C:\...\stage ^
+; assets\windows\concat.iss
+;
+; Arch is Inno's own word for the machine: x64compatible for the x86_64
+; build (which also installs on ARM PCs, under emulation), arm64 for the
+; native one. Suffix is the bundle's word for it, which names the file.
+
+#ifndef Version
+ #error Version is required
+#endif
+#ifndef Arch
+ #error Arch is required: x64compatible or arm64
+#endif
+#ifndef Suffix
+ #error Suffix is required: x86_64 or aarch64
+#endif
+#ifndef Stage
+ #error Stage is required: the staged folder to install
+#endif
+#ifndef Out
+ #define Out "."
+#endif
+
+[Setup]
+; One id for the life of the product, so an install over an older one is
+; an upgrade and not a second copy.
+AppId={{7B1E5C3A-3B9E-4F0B-9C6D-2F1D0C0A0C47}
+AppName=Concat
+AppVersion={#Version}
+AppVerName=Concat {#Version}
+AppPublisher=Concat contributors
+AppPublisherURL=https://github.com/jub0t/Concat
+AppSupportURL=https://github.com/jub0t/Concat/issues
+AppUpdatesURL=https://github.com/jub0t/Concat/releases
+DefaultDirName={autopf}\Concat
+DefaultGroupName=Concat
+DisableProgramGroupPage=yes
+LicenseFile=..\..\LICENSE
+OutputDir={#Out}
+OutputBaseFilename=Concat-{#Version}-windows-{#Suffix}-setup
+SetupIconFile=..\icons\concat.ico
+UninstallDisplayIcon={app}\concat.ico
+UninstallDisplayName=Concat
+Compression=lzma2/max
+SolidCompression=yes
+WizardStyle=modern
+ArchitecturesAllowed={#Arch}
+ArchitecturesInstallIn64BitMode={#Arch}
+; For the user alone unless they ask for the machine: no prompt for an
+; administrator to install a video editor into one's own account.
+PrivilegesRequired=lowest
+PrivilegesRequiredOverridesAllowed=dialog
+
+[Languages]
+Name: "english"; MessagesFile: "compiler:Default.isl"
+
+[Tasks]
+Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
+
+[Files]
+Source: "{#Stage}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
+Source: "..\icons\concat.ico"; DestDir: "{app}"; Flags: ignoreversion
+
+[Icons]
+Name: "{autoprograms}\Concat"; Filename: "{app}\concat.exe"; IconFilename: "{app}\concat.ico"
+Name: "{autodesktop}\Concat"; Filename: "{app}\concat.exe"; IconFilename: "{app}\concat.ico"; Tasks: desktopicon
+
+[Run]
+Filename: "{app}\concat.exe"; Description: "{cm:LaunchProgram,Concat}"; Flags: nowait postinstall skipifsilent