Comments (5)
Generally speaking it's the same as any other app, the icon must be specified in the desktop file and copied to its specified paths depending on size (for instance, a 512px icon would go under /app/share/icons/hicolor/512x512/apps/
), flatpak-builder
finds and exports these paths to make them available outside the sandbox.
However, if you're using something like electron-builder
or similar you can do it their way and let it take care of it.
from electron-sample-app.
In this example we are using electron builder right.
for some reason when i set an icon via package.json it is not getting reflected on flatpak.
Can you drop a working json code adding a custom icon for this example app?
that is the final thing i need to fix.
from electron-sample-app.
In this example we are using electron builder right.
for some reason when i set an icon via package.json it is not getting reflected on flatpak.
Sorry I can't really help you with this, but if your issue is specific to electron-builder
you may be able to get help from them.
Can you drop a working json code adding a custom icon for this example app?
I don't have one, I whipped up this example three years ago in half an hour for a tutorial I was working on.
If you don't want to deal with electron-builder
and would rather do it manually you can do what I was saying earlier, write a desktop file and the icons to their respective paths. The flatpak documentation has a cheat-sheet for this kind of situation: https://docs.flatpak.org/en/latest/freedesktop-quick-reference.html
You can do it directly in your manifest if you want.
from electron-sample-app.
Looks like with Electron Builder app icon is working on Snap, Appimage etc. but not working when i make a flatpak.
the only way is to do it manually. like you said. But i can't find any example electron app doing that in FlatHub Pull Request.
but when i try flatpak run org.openspeedtest.server it's running.. but cannot be found or ubuntu app drawer
I suspect maybe if i install this app properly it may work?
so i try to export but getting another error message. :(
How to create a .flatpak file from this sample electron app?
flatpak create-usb / org.openspeedtest.server
error: Remote ‘server-origin’ does not have a collection ID set, which is required for P2P distribution of ‘app/org.openspeedtest.server/x86_64/master’.
from electron-sample-app.
But i can't find any example electron app doing that in FlatHub Pull Request.
There's a lot of electron apps on flathub, like for instance this one:
https://github.com/flathub/io.github.hmlendea.geforcenow-electron/
You'll notice that repo has an icon and a desktop file and installs both of them manually in the manifest, it's just what you're trying to do.
As for your other questions, this isn't a good place for support, I suggest you drop by https://matrix.to/#flatpak:matrix.org
from electron-sample-app.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-sample-app.