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
2 changes: 1 addition & 1 deletion apps/buddy/electron-builder.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = {
files: [
'.output/build/electron/**/*',
'package.json',
'resources/icons/app-icon.png',
'resources/icons/*.png',
'!**/__tests__/**',
'!node_modules/**/*.map',
...excludedDependencyFiles(target),
Expand Down
7 changes: 7 additions & 0 deletions packaging/buddy/release/verify-package.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ export function verifyDesktopDirectory(directory, targetId, cwd = repoRoot) {
if (!entries.includes(`.output/build/electron/${entry}`))
throw new Error(`Desktop archive is missing ${entry}`)
}
for (const name of readdirSync(join(cwd, 'apps/buddy/resources/icons')).filter(name => name.endsWith('.png'))) {
const entry = `resources/icons/${name}`
if (!entries.includes(entry))
throw new Error(`Desktop archive is missing ${entry}`)
if (!asar.extractFile(archive, normalize(entry)).equals(readFileSync(join(cwd, 'apps/buddy', entry))))
throw new Error(`Desktop archive ${entry} does not match the source icon`)
}
if (entries.some(entry => entry.split('/').includes('__tests__')))
throw new Error('Desktop archive contains test files')
for (const entry of entries.filter(entry => entry.endsWith('.node')))
Expand Down