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 Feb 22, 2022
1 parent 70a4459 commit 2d7eca7
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 @@ -171,13 +171,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())

const options: Options & IPackageAdditionalOptions = {
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 2d7eca7

Please sign in to comment.