feat(launcher): add WTOffline logo application and installer icons
This commit is contained in:
1 parent
cae69a6446
commit
c65308c477
6 files changed
+49
-3
No files matched your search
@@ -64,6 +64,10 @@ async function stageInstaller(stage: string, manifest: LauncherManifest): Promis
|
||||
|
||||
const resources = join(stage, 'installer-resources');
|
||||
await mkdir(join(resources, 'native'), { recursive: true });
|
||||
await mkdir(join(stage, 'build'), { recursive: true });
|
||||
await cp(join(launcher, 'resources', 'icon.ico'), join(stage, 'build', 'icon.ico'));
|
||||
await cp(join(launcher, 'resources', 'icon.ico'), join(resources, 'icon.ico'));
|
||||
await cp(join(launcher, 'resources', 'icon.png'), join(resources, 'icon.png'));
|
||||
await cp(join(repository, 'LICENSE'), join(resources, 'LICENSE-WTOffline'));
|
||||
await cp(join(native, 'wto_ws.dll'), join(resources, 'native', 'wto_ws.dll'));
|
||||
for (const folder of ['exe', 'gui', 'native', 'versions']) {
|
||||
@@ -140,10 +144,19 @@ async function main(): Promise<void> {
|
||||
{ from: 'installer-modules', to: 'node_modules', filter: ['**/*'] },
|
||||
],
|
||||
win: {
|
||||
icon: join(stage, 'build', 'icon.ico'),
|
||||
artifactName,
|
||||
signExecutable: false,
|
||||
},
|
||||
nsis: { oneClick: false, perMachine: false, allowToChangeInstallationDirectory: true, runAfterFinish: false },
|
||||
nsis: {
|
||||
oneClick: false,
|
||||
perMachine: false,
|
||||
allowToChangeInstallationDirectory: true,
|
||||
runAfterFinish: false,
|
||||
installerIcon: join(stage, 'build', 'icon.ico'),
|
||||
uninstallerIcon: join(stage, 'build', 'icon.ico'),
|
||||
installerHeaderIcon: join(stage, 'build', 'icon.ico'),
|
||||
},
|
||||
},
|
||||
});
|
||||
for (const artifact of artifacts) console.info(artifact);
|
||||
|
||||
Reference in new issue
Block a user