-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dexc-desktop: Snap package #2580
base: master
Are you sure you want to change the base?
Conversation
95e4276
to
fc32448
Compare
765346c
to
bf46fe3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting an error when running ./pkg/pkg-debian.sh
:
dpkg-deb: error: parsing file './build/dexc_bf46fe348fb83893408e875408499761a3df5ea4-0_amd64/DEBIAN/control' near line 2 package 'dexc':
'Version' field value 'bf46fe348fb83893408e875408499761a3df5ea4': version number does not start with digit
It pulls the version number from the If you |
bf46fe3
to
9bf282c
Compare
So the commit needs a tag to work? I did not know. Maybe add that to the readme there at least if it is a requirement? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After adding a bogus tag was able to build and install with snap.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not seeing the benefit of the github actions deployment. What does it do for us over just running the script ourselves?
Icons: added SVG icon for hicolor and symbolic variations, fixed 128px PNG to match official version
Can you say more about the new files and what they do for us? Or point me to some documentation?
I don't care about the official logo version. I changed it because the official color was too dark and looked bad in my panel. None of this matters much, of course, because we're rebranding anyway, but prefer to use the lighter color that has margins.
client/cmd/dexc-desktop/metainfo/org.decred.dcrdex.metainfo.xml
Outdated
Show resolved
Hide resolved
client/cmd/dexc-desktop/metainfo/org.decred.dcrdex.metainfo.xml
Outdated
Show resolved
Hide resolved
client/cmd/dexc-desktop/metainfo/org.decred.dcrdex.metainfo.xml
Outdated
Show resolved
Hide resolved
client/cmd/dexc-desktop/metainfo/org.decred.dcrdex.metainfo.xml
Outdated
Show resolved
Hide resolved
client/cmd/dexc-desktop/metainfo/org.decred.dcrdex.metainfo.xml
Outdated
Show resolved
Hide resolved
It does the same thing but makes life a tad easier. The binary it packages into a snap comes from the .deb package.
dexc.png is scaled to 128px which is one of the default icon sizes, the 100px version was scaled up and rendered blurry https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
The tray icon should really match the other icons (menu, dock, task switcher), if it's different it looks odd. How about using the monochrome version? That's the most distinctly recognizable in the tray visually. |
1ffa951
to
97a53e9
Compare
if [ ! -d ../../webserver/site/dist ]; then | ||
CWD=$(pwd) | ||
cd ../../webserver/site | ||
npm clean-install | ||
npm run build | ||
cd $CWD | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just because there's a file there doesn't mean its the right one. Any reason not to just build it every time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea here was that the site package is added to the repo on the release branch so there's no need to build it at the time of building the release packages but it certainly won't hurt.
97a53e9
to
f845d98
Compare
f845d98
to
45de6fc
Compare
45de6fc
to
4193b53
Compare
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} | ||
with: | ||
snap: ${{ steps.build.outputs.snap }} | ||
release: stable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe if this is omitted, the package is uploaded but not released. Would that give us a chance to double-check everything first and then release later?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would, though one could also run the snap build locally to test the package.
This PR adds configuration, build scripts and Github workflow to build the Snap package and publishing it in the Snap Store.
The snap build uses the .deb package. The PR also contains a few fixes/improvements in the deb build: