Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file added apps/ide/build-resources/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions apps/ide/electron-builder.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
// Unsigned: see the "Installers" section of the README for what that means
// on each OS.
const EXTENSION = '../vscode-extension';
// The installer icon is the IDE's own 512x512 copy: electron-builder refuses
// anything smaller on macOS, and the extension's icon.png is 256x256 since
// 1.2.1 (the Marketplace listing does not need more).
const INSTALLER_ICON = 'build-resources/icon.png';
// The installed Electron (package.json holds a range; the binaries are per release).
const { version: electronVersion } = require(require.resolve('electron/package.json'));

Expand Down Expand Up @@ -51,16 +55,16 @@ module.exports = {
linux: {
target: ['AppImage', 'deb'],
category: 'Development',
icon: `${EXTENSION}/resources/icon.png`,
icon: INSTALLER_ICON,
maintainer: 'Code-XR Project',
},
deb: { packageName: 'code-xr-ide', artifactName: '${name}_${version}_${arch}.${ext}' },
win: { target: ['nsis'], icon: `${EXTENSION}/resources/icon.png` },
win: { target: ['nsis'], icon: INSTALLER_ICON },
nsis: { artifactName: 'Code-XR-IDE-Setup-${version}.${ext}', oneClick: false, allowToChangeInstallationDirectory: true, perMachine: false },
mac: {
target: ['dmg'],
category: 'public.app-category.developer-tools',
icon: `${EXTENSION}/resources/icon.png`,
icon: INSTALLER_ICON,
// Not signed with a developer certificate nor notarised (thesis
// prototype). '-' signs ad hoc, which Apple silicon requires for any
// app to start at all; Gatekeeper still asks on first open (README).
Expand Down
Loading