barinali / electron-packager-languages Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
We would like to support the same feature set for the Linux packages.
I am using this package to reduce code bloat in my app which is being packaged for Linux targets (from a Linux dev machine).
The README shows sample code with: afterCopy: [setLanguages(['en', 'en_GB'])]
This is apparently the correct way to specify languages on Mac, but it fails on Linux, because the filenames use a hyphen instead of underscore.
I was attempting to only include US english. So I had afterCopy: [setLanguages(['en_US'])]
This results in a confusing error where attempting to open DevTools fails with an error on the console:
[333085:0522/153303.240453:ERROR:CONSOLE(1)] "Uncaught RangeError: Incorrect locale information provided", source: devtools://devtools/bundled/models/trace/helpers/helpers.js (1)
Changing to afterCopy: [setLanguages(['en-US'])]
fixed it for me.
For reference, here is the full listing of ./out/APPNAME-linux-x64/locales/
on my Linux Mint 21.1 (when I omit the afterCopy:
command)
af.pak
am.pak
ar.pak
bg.pak
bn.pak
ca.pak
cs.pak
da.pak
de.pak
el.pak
en-GB.pak
en-US.pak
es-419.pak
es.pak
et.pak
fa.pak
fil.pak
fi.pak
fr.pak
gu.pak
he.pak
hi.pak
hr.pak
hu.pak
id.pak
it.pak
ja.pak
kn.pak
ko.pak
lt.pak
lv.pak
ml.pak
mr.pak
ms.pak
nb.pak
nl.pak
pl.pak
pt-BR.pak
pt-PT.pak
ro.pak
ru.pak
sk.pak
sl.pak
sr.pak
sv.pak
sw.pak
ta.pak
te.pak
th.pak
tr.pak
uk.pak
ur.pak
vi.pak
zh-CN.pak
zh-TW.pak
It would be nice if there were a common way to specify languages that worked across platforms.
We would like to support the same feature set for the Linux packages.
Our build pipeline has "package" npm step that roughly looks like:
"package": "node_modules\.bin\electron-packager.cmd . "MYAPP" --platform [...]"
Which we invoke as npm run package .
What is the syntax to invoke this plugin in this case? I have added it as a dev_dep but can't figure out how to use it as a npm step. Thanks
Well, I spent almost a week trying to find the root cause of this symptom, but it was the 0.3.0 of this module.
If your app has either
<input type="file" />
or Google login popup screen,
then your app silently crashes with the devtool disconnected.
We had to rollback to 0.1.0, which doesn't seem to touch Windows part.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.