Skip to content

Commit

Permalink
update build config
Browse files Browse the repository at this point in the history
  • Loading branch information
Toinane committed May 14, 2024
1 parent afb22dc commit a0a9626
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 39 deletions.
71 changes: 37 additions & 34 deletions colorpicker-build.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,40 @@
{
"appId": "com.electron.colorpicker",
"productName": "Colorpicker",
"compression": "maximum",
"copyright": "Copyright @Toinane",
"buildDependenciesFromSource": true,
"directories": {
"output": "out"
},
"files": ["**/*"],
"mac": {
"category": "public.app-category.graphics-design",
"icon": "build/icon.icns",
"type": "distribution"
},
"dmg": {
"icon": "build/VolumeIcon.icns",
"background": "build/background.png",
"window": {
"width": 540,
"height": 380
}
},
"linux": {
"icon": "./build",
"synopsis": "Colorpicker App",
"category": "Graphics",
"executableName": "colorpicker-app"
},
"win": {
"icon": "build/icon.ico"
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true
"appId": "com.electron.colorpicker",
"productName": "Colorpicker",
"compression": "maximum",
"copyright": "Copyright @Toinane",
"buildDependenciesFromSource": true,
"directories": {
"output": "out"
},
"files": ["**/*"],
"mac": {
"target": ["dmg"],
"arch": ["arm64", "x64"],
"category": "public.app-category.graphics-design",
"icon": "build/icon.icns",
"type": "distribution"
},
"dmg": {
"icon": "build/VolumeIcon.icns",
"background": "build/background.png",
"window": {
"width": 540,
"height": 380
}
},
"linux": {
"icon": "./build",
"synopsis": "Colorpicker App",
"category": "Graphics",
"executableName": "colorpicker-app"
},
"win": {
"target": ["nsis", "portable"],
"icon": "build/icon.ico"
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true
}
}
10 changes: 5 additions & 5 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: colorpicker-app
version: '2.0.4'
version: "2.2.1"
base: core18
summary: A mininal but complete Colorpicker desktop app
description: |
Expand All @@ -25,7 +25,7 @@ apps:
command: opt/Colorpicker/colorpicker-app --no-sandbox
desktop: usr/share/applications/colorpicker-app.desktop
autostart: colorpicker-app.desktop
plugs:
plugs:
- desktop
- desktop-legacy
- home
Expand Down Expand Up @@ -62,7 +62,7 @@ parts:
sed -i 's|Icon=colorpicker-app|Icon=/usr/share/icons/hicolor/256x256/apps/colorpicker-app.png|' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/colorpicker-app.desktop
prime:
- -opt/Colorpicker/chrome-sandbox
stage-packages:
stage-packages:
- libasound2
- libgconf2-4
- libnotify4
Expand All @@ -83,8 +83,8 @@ parts:
cleanup:
after: [colorpicker-app]
plugin: nil
build-snaps: [ gnome-3-28-1804 ]
build-snaps: [gnome-3-28-1804]
override-prime: |
set -eux
cd /snap/gnome-3-28-1804/current
find . -type f,l -exec rm -f $SNAPCRAFT_PRIME/{} \;
find . -type f,l -exec rm -f $SNAPCRAFT_PRIME/{} \;

0 comments on commit a0a9626

Please sign in to comment.