mirror of
https://github.com/davidkaya/aryx.git
synced 2026-07-23 21:18:40 +02:00
fix: fix Inno Setup preprocessor defines via environment variables
ISCC's /D command-line flag combined with Node.js spawn on Windows produces broken ISPP defines due to argument quoting conflicts. Switch to environment variables read via GetEnv() — robust and avoids all quoting issues. Product name and publisher are now hardcoded in the ISS (they never change). Verified: installer shows 'Aryx' and correct version in metadata. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -86,19 +86,13 @@ async function createWindowsInstaller(version: string): Promise<void> {
|
||||
const outputFilename = releaseTarget.installerAssetName.replace(/\.exe$/, '');
|
||||
const iconPath = join(repositoryRoot, 'assets', 'icons', 'windows', 'icon.ico');
|
||||
|
||||
await runCommand(
|
||||
isccPath,
|
||||
[
|
||||
`/DPRODUCT_NAME=${productName}`,
|
||||
`/DPRODUCT_VERSION=${version}`,
|
||||
`/DSOURCE_DIR=${packagedAppDirectory}`,
|
||||
`/DOUTPUT_DIR=${releaseRootDirectory}`,
|
||||
`/DOUTPUT_FILENAME=${outputFilename}`,
|
||||
`/DICON_PATH=${iconPath}`,
|
||||
issScript,
|
||||
],
|
||||
repositoryRoot,
|
||||
);
|
||||
process.env.ARYX_BUILD_VERSION = version;
|
||||
process.env.ARYX_BUILD_SOURCE_DIR = packagedAppDirectory;
|
||||
process.env.ARYX_BUILD_OUTPUT_DIR = releaseRootDirectory;
|
||||
process.env.ARYX_BUILD_OUTPUT_FILENAME = outputFilename;
|
||||
process.env.ARYX_BUILD_ICON_PATH = iconPath;
|
||||
|
||||
await runCommand(isccPath, [issScript], repositoryRoot);
|
||||
}
|
||||
|
||||
// --- macOS: DMG disk image ---
|
||||
|
||||
Reference in New Issue
Block a user