Skip to content

Commit

Permalink
move icons to correct location, update usages in tooling (#606)
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed Jul 1, 2024
1 parent 8a857b3 commit 9d87c55
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 14 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
9 changes: 8 additions & 1 deletion script/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,20 @@ function packageApp() {
)
}

// this setting only works for macOS and Windows, so let's clear it now to ensure
// the app is working as expected
const icon =
process.platform === 'linux'
? undefined
: path.join(projectRoot, 'app', 'static', 'logos', getIconFileName())

return packager({
name: getExecutableName(),
platform: toPackagePlatform(process.platform),
arch: toPackageArch(process.env.TARGET_ARCH),
asar: false, // TODO: Probably wanna enable this down the road.
out: getDistRoot(),
icon: path.join(projectRoot, 'app', 'static', 'logos', getIconFileName()),
icon,
dir: outRoot,
overwrite: true,
tmpdir: false,
Expand Down
2 changes: 1 addition & 1 deletion script/electron-builder-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ artifactName: 'GitHubDesktop-${os}-${version}.${ext}'
linux:
category: 'GNOME;GTK;Development'
packageCategory: 'GNOME;GTK;Development'
icon: 'app/static/logos'
icon: 'app/static/linux/logos'
mimeTypes:
- x-scheme-handler/x-github-client
- x-scheme-handler/x-github-desktop-auth
Expand Down
12 changes: 6 additions & 6 deletions script/package-debian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ const options: DebianOptions = {
'gnome-keyring',
],
icon: {
'32x32': 'app/static/logos/32x32.png',
'64x64': 'app/static/logos/64x64.png',
'128x128': 'app/static/logos/128x128.png',
'256x256': 'app/static/logos/256x256.png',
'512x512': 'app/static/logos/512x512.png',
'1024x1024': 'app/static/logos/1024x1024.png',
'32x32': 'app/static/linux/logos/32x32.png',
'64x64': 'app/static/linux/logos/64x64.png',
'128x128': 'app/static/linux/logos/128x128.png',
'256x256': 'app/static/linux/logos/256x256.png',
'512x512': 'app/static/linux/logos/512x512.png',
'1024x1024': 'app/static/linux/logos/1024x1024.png',
},
scripts: {
postinst: 'script/resources/deb/postinst.sh',
Expand Down
12 changes: 6 additions & 6 deletions script/package-redhat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ const options: RedhatOptions = {
'gnome-keyring',
],
icon: {
'32x32': 'app/static/logos/32x32.png',
'64x64': 'app/static/logos/64x64.png',
'128x128': 'app/static/logos/128x128.png',
'256x256': 'app/static/logos/256x256.png',
'512x512': 'app/static/logos/512x512.png',
'1024x1024': 'app/static/logos/1024x1024.png',
'32x32': 'app/static/linux/logos/32x32.png',
'64x64': 'app/static/linux/logos/64x64.png',
'128x128': 'app/static/linux/logos/128x128.png',
'256x256': 'app/static/linux/logos/256x256.png',
'512x512': 'app/static/linux/logos/512x512.png',
'1024x1024': 'app/static/linux/logos/1024x1024.png',
},
scripts: {
post: 'script/resources/rpm/post.sh',
Expand Down

0 comments on commit 9d87c55

Please sign in to comment.