参照相关文档,在package.json中配置electron-builder的基础打包设置:
"build": { "productName": "Fishing Funds", "appId": "com.electron.1zilc.fishing-funds", "copyright": "Copyright © 2021 1zilc", "files": [ "dist/", "node_modules/", "index.html", "main.prod.js", "main.prod.js.map", "package.json" ], "afterSign": ".erb/scripts/Notarize.js", "mac": { "target": [ "dmg" ], "type": "distribution", "hardenedRuntime": true, "entitlements": "assets/entitlements.mac.plist", "entitlementsInherit": "assets/entitlements.mac.plist", "gatekeeperAssess": false }, "dmg": { "contents": [ { "x": 130, "y": 220 }, { "x": 410, "y": 220, "type": "link", "path": "/Applications" } ] }, "win": { "target": [ "nsis" ] }, "linux": { "target": [ "AppImage" ], "category": "Development" }, "directories": { "app": "src", "buildResources": "assets", "output": "release" }, "extraResources": [ "./assets/**" ] },
在该配置的基础上添加 publish key,如下:
"publish": { "provider": "github", "owner": "1zilc", "repo": "fishing-funds" }
以我自己的 Fishing Funds 为例
添加github token,网址如下: https://github.com/settings/tokens/new

勾选repo仓库相关权限
生成token后,临时添加环境变量中
export GH_TOKEN="<YOUR_TOKEN_HERE>"
在package.json中编写scripts,根据实际情况做调整
"scripts": { "build": "concurrently \"yarn build:main\" \"yarn build:renderer\"", "build:main": "cross-env NODE_ENV=production webpack --config ./.erb/configs/webpack.config.main.prod.babel.js", "build:renderer": "cross-env NODE_ENV=production webpack --config ./.erb/configs/webpack.config.renderer.prod.babel.js", "package": "rm -rf src/dist && yarn build && electron-builder build --publish never", "package-mac": "rm -rf src/dist && yarn build && electron-builder build --mac -p always", "package-linux": "rm -rf src/dist && yarn build && electron-builder build --linux", "package-win": "rm -rf src/dist && yarn build && electron-builder build --win --x64", "package-all": "rm -rf src/dist && yarn build && electron-builder build -mwl", "release-all": "rm -rf src/dist && yarn build && electron-builder build -mwl --publish always" },
# 添加发布参数即release-all中所写 electron-builder build --publish always
执行
yarn release-all

构建完成后会自动通过刚才设置的token去调github的发布接口,此时仓库中会自动生成一个草稿状态的release,在填写相关日志后即可进行版本发布
electron-builder 自动发布 github release 到此完成! 🙂
Hi, i think that i saw you visited my weblog so i came to “return the favor”.I’m trying to find things to enhance my web site!I suppose its ok to use some of your
ideas!!
This text is worth everyone’s attention. Where can I
find out more?
It’s genuinely very complicated in this full of activity life to listen news on Television, so I just use
internet for that purpose, and get the most recent news.
Paragraph writing is also a excitement, if you
know after that you can write otherwise it is difficult to write.
Appreciate this post. Let me try it out.
Hello there! Do you know if they make any
plugins to help with SEO? I’m trying to get my blog to rank for
some targeted keywords but I’m not seeing very good gains.
If you know of any please share. Cheers!
I do not even know how I finished up here, but I believed this put up was great.
I don’t realize who you’re but definitely you’re going to a famous blogger if you happen to are not already.
Cheers!
Hey there! This is my 1st comment here so
I just wanted to give a quick shout out and tell you I genuinely enjoy reading your
blog posts. Can you recommend any other blogs/websites/forums that cover the same subjects?
Thank you!
Great goods from you, man. I’ve have in mind your stuff previous to
and you are simply too wonderful. I actually like what you’ve got
right here, really like what you’re stating and the way in which in which
you are saying it. You’re making it enjoyable and you continue to take care of to stay it
wise. I can’t wait to read much more from you. That is actually a tremendous site.
Everything is very open with a precise description of the issues.
It was definitely informative. Your site is very helpful.
Thanks for sharing!
Nice blog here! Also your website loads up fast! What
host are you using? Can I get your affiliate link to your host?
I wish my site loaded up as quickly as yours lol
This is a topic that’s near to my heart… Best wishes!
Where are your contact details though?
Great article. I am facing some of these issues as well..
Pat. No. 6,927,044). In one example, a soluble specificity determining component of the receptor
and the extracellular domain of the first .beta.
Pat. Nos. 5,227,158 and 6,099,841), neurotrophic factors such as bone-derived neurotrophic factor (BDNF),
glial cell derived neurotrophic factor ligands (e.g., GDNF, neuturin, artemin, and persephin), neurotrophin-3,
-4, -5, or -6 (NT-3, NT-4, NT-5, or NT-6), or a nerve growth factor such
as NGF-.beta. Pat. Nos. 6,403,764 and 6,506,874); Erythropoietin (EPO);
Thrombopoeitin (TPO; stem-cell factor (SCF), thrombopoietin (TPO, c-Mpl ligand), and the Wnt polypeptides (U.S.
Exemplary growth factor receptors which may be used as therapeutic moieties of
the invention include EGF receptors; VEGF receptors (e.g.
Flt1 or Flk1/KDR), PDGF receptors (WO 90/14425);
HGF receptors (U.S. In certain embodiments, the therapeutic molecule useful for the invention is an oligomer.
The term “nucleotide sequence” herein means the molecule in which
more than two nucleotides are connected to each other as a sequence.
In another embodiment, the nucleotide sequence for the present disclosure is
RNA.
Do you mind if I quote a few of your articles as long as I provide credit and sources back
to your website? My blog is in the very same niche as yours and my users
would genuinely benefit from some of the information you present here.
Please let me know if this okay with you. Many thanks!
Pretty nice post. I just stumbled upon your blog and wanted to
say that I have truly enjoyed surfing around your blog posts.
In any case I will be subscribing to your rss feed and I hope you
write again soon!
Hi there! I’m at work browsing your blog
from my new iphone 3gs! Just wanted to say I love reading through your blog and look forward to all your
posts! Carry on the excellent work!
We’re a group of volunteers and starting
a new scheme in our community. Your web site provided us with valuable info
to work on. You’ve done a formidable job and our entire community will be thankful to you.
Great work! That is the type of information that should be shared across the
net. Shame on the search engines for not positioning this put up higher!
Come on over and consult with my site . Thank you =)
The very next time I read a blog, Hopefully it does not fail me just as much as this one.
I mean, I know it was my choice to read, but I actually believed you
would probably have something interesting to talk about.
All I hear is a bunch of crying about something you can fix if
you were not too busy looking for attention.
Wow, this post is good, my younger sister is analyzing
these kinds of things, therefore I am going to tell her.
Dex…we were doing so good. I promised to not politics
at your funeral…you opened up about the Mandalorian…
Then you go and post this white hot garbage opinion. Why you gotta be this way
WHY DO YOU PUSH ME AWAY LIKE THIS!
What’s up, yeah this paragraph is truly fastidious and I have
learned lot of things from it regarding blogging. thanks.
bro you think famous dex hot so to you it’s not lol
Good replies in return of this matter with firm arguments and telling all about that.
Hello There. I discovered your blog the use of msn.
This is an extremely well written article. I will be sure to
bookmark it and return to read more of your helpful info.
Thank you for the post. I will definitely return.
Way cool! Some very valid points! I appreciate you writing this write-up and also the rest of the website is really good.
Hi I am so happy I found your blog, I really found you by error, while I was looking on Yahoo
for something else, Anyways I am here now and would just like
to say cheers for a incredible post and a all round enjoyable blog (I also love the theme/design), I
don’t have time to read through it all at the minute but I have book-marked it and also added in your RSS feeds, so when I have
time I will be back to read more, Please do keep up the awesome jo.
É um safado enrustido.
Hey There. I found your blog using msn. This is a very well written article.
I will make sure to bookmark it and come back to read more
of your useful information. Thanks for the post.
I will certainly comeback.
Pretty nice post. I just stumbled upon your blog and wanted to say that I’ve truly enjoyed browsing your blog posts.
In any case I’ll be subscribing to your feed and I
hope you write again soon!
I loved as much as you’ll receive carried out right here.
The sketch is tasteful, your authored subject matter stylish.
nonetheless, you command get got an impatience over that you wish be
delivering the following. unwell unquestionably come
more formerly again as exactly the same nearly very often inside case you shield
this hike.
A very HappyThanksgiving to all my dear American friends xxx
Thanksgiving2019
Hello it’s me, I am also visiting this web page on a regular basis,
this web page is genuinely nice and the people are truly sharing nice thoughts.
This text is invaluable. How can I find out more?
I’m truly enjoying the design and layout of your site.
It’s a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you hire out a designer to create your theme?
Exceptional work!
What’s up, yup this article is in fact good and I have learned lot of things from it
concerning blogging. thanks.
This article is genuinely a fastidious one it helps new net
users, who are wishing for blogging.
My relatives all the time say that I am killing my time here at web, except I know I am getting familiarity all the time
by reading such good articles or reviews.
whoah this blog is excellent i really like reading your posts.
Keep up the great work! You realize, a lot of persons are searching round
for this information, you can help them greatly.
Hey I know this is off topic but I was wondering if you
knew of any widgets I could add to my blog that automatically tweet my newest twitter updates.
I’ve been looking for a plug-in like this for quite some time and
was hoping maybe you would have some experience with something
like this. Please let me know if you run into anything.
I truly enjoy reading your blog and I look forward to your new updates.
Hi there to all, how is everything, I think every one
is getting more from this website, and your
views are fastidious in support of new users.
fantastic points altogether, you just received
a new reader. What could you suggest in regards to your put up that you made a few
days in the past? Any sure?
Undeniably believe that that you said. Your favourite reason appeared to be on the web the easiest factor to be aware of.
I say to you, I certainly get annoyed even as people consider worries that they plainly do not understand about.
You controlled to hit the nail upon the highest and also defined out the entire thing with no need
side-effects , other folks could take a signal.
Will probably be back to get more. Thanks
I am really loving the theme/design of your website.
Do you ever run into any web browser compatibility problems?
A couple of my blog visitors have complained about my website not operating correctly in Explorer but
looks great in Opera. Do you have any solutions to help fix this problem?
Why people still make use of to read news papers
when in this technological globe everything is available on net?
What’s up to every one, as I am actually eager of reading this blog’s post to be updated on a regular basis.
It includes nice information.
RT @BettyBoobiesNL: ” Hi, I’m @dalinda1985 !
A lascivious BBW lady of 32 years old. I will pamper you with my delicious big ass and my horny tits . ”
Visit my chatroom
PornoPromotiob>
Thank you for the auspicious writeup. It in fact was a amusement account it.
Look advanced to far added agreeable from you! However, how could we communicate?
You made me feel like the bad guy the entire time.
That’s not a bad selection for a site that offers so many top-notch sluts, and we would know.
It offers software package in multiple languages, along
with payment options in various currencies. Player options as well as facility to chat
make the site more alluring. Find out a little bit about your potential instructors, as well.
The adult dating personals have turned out to be successful enough
in providing people some suitable chance to find adult friend, meet
up hot singles and get caught up with sexiest ladies and
wildest men. Some of the sites include Adult Match
Maker, a premier service that provides sex chat, and The Love Club, a classy site
which has free adult personals. A time tested application it has been the preferred choice of developers owing to the flexibility it provides.
Most quality online colleges have webcam classroom time as well as the ability to connect with your teachers via chat, email,
or even telephone. There is no question that taking a course in management will help you learn skills to benefit you in the workforce as well
as increasing your chances of gaining employment.