|
| 1 | +import { resolve } from 'path'; |
| 2 | + |
| 3 | +const repoPath = resolve(__dirname, '../../'); |
| 4 | +const packagePath = resolve(repoPath, 'package'); |
| 5 | +const versionFilePath = resolve(packagePath, 'version'); |
| 6 | +const innoPath = resolve(__dirname, 'inno'); |
| 7 | +const innoResourcesPath = resolve(innoPath, 'Resources'); |
| 8 | +const setupIconPath = resolve(innoResourcesPath, 'cncnet5.ico'); |
| 9 | +const licenseFilePath = resolve(innoResourcesPath, 'License-YurisRevenge.txt'); |
| 10 | +const installerBinary = resolve(innoPath, 'bin/ISCC.exe'); |
| 11 | +const installerTemplate = resolve(innoPath, 'installer.twig'); |
| 12 | +const installerScript = resolve(innoPath, 'installer.iss'); |
| 13 | +const preUpdateExecFilename = 'preupdateexec'; |
| 14 | +const updateExecFilename = 'updateexec'; |
| 15 | +const preUpdateExecFilePath = resolve(packagePath, preUpdateExecFilename); |
| 16 | +const updateExecFilePath = resolve(packagePath, updateExecFilename); |
| 17 | +const netCoreCheckPath = resolve(innoPath, 'libs/InnoDependencyInstaller/netcorecheck'); |
| 18 | + |
| 19 | +const constants = { |
| 20 | + app: { |
| 21 | + name: 'CnCNet Yuri\'s Revenge', |
| 22 | + publisher: 'cncnet.org', |
| 23 | + publisherUrl: 'https://cncnet.org', |
| 24 | + supportUrl: 'https://cncnet.org', |
| 25 | + updatesUrl: 'https://cncnet.org' |
| 26 | + }, |
| 27 | + outputBaseFilename: 'CnCNet5_YR_Installer', |
| 28 | + paths: { |
| 29 | + installerBinary, |
| 30 | + installerTemplate, |
| 31 | + installerScript, |
| 32 | + repoPath, |
| 33 | + packagePath, |
| 34 | + setupIconPath, |
| 35 | + licenseFilePath, |
| 36 | + versionFilePath, |
| 37 | + preUpdateExecFilePath, |
| 38 | + updateExecFilePath, |
| 39 | + netCoreCheckPath |
| 40 | + }, |
| 41 | + excludedInstallerFiles: [ |
| 42 | + preUpdateExecFilename, |
| 43 | + updateExecFilename, |
| 44 | + 'versionconfig.ini', |
| 45 | + 'RA2MD.ini' |
| 46 | + ] |
| 47 | +} |
| 48 | +export { constants }; |
0 commit comments