在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):joaomoreno/gulp-atom-electron开源软件地址(OpenSource Url):https://github.com/joaomoreno/gulp-atom-electron开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):Deprecated Please use the official way of requiring Electron: https://electronjs.org/docs/tutorial/first-app -- gulp-atom-electronInstallationnpm install --save-dev gulp-atom-electron UsageYou can use this module in two distinct ways: to package your application and/or to download a version of Electron to disk. How to Package Your ApplicationYou should source your app's files using var gulp = require("gulp");
var symdest = require("gulp-symdest");
var electron = require("gulp-atom-electron");
gulp.task("default", function () {
return gulp
.src("src/**")
.pipe(electron({ version: "0.34.1", platform: "darwin" }))
.pipe(symdest("app"));
}); Note: It is important to use Finally, you can always pipe it to a zip archive for easy distribution. joaomoreno/gulp-vinyl-zip is recommended: var gulp = require("gulp");
var zip = require("gulp-vinyl-zip");
var electron = require("gulp-atom-electron");
gulp.task("default", function () {
return gulp
.src("src/**")
.pipe(electron({ version: "0.34.1", platform: "darwin" }))
.pipe(zip.dest("app-darwin.zip"));
}); How to Download ElectronThere's also a very handy export var gulp = require("gulp");
var electron = require("gulp-atom-electron");
gulp.task("default", function () {
return electron.dest("electron-build", {
version: "0.34.1",
platform: "darwin",
});
}); This will place a vanilla Electron build into the OptionsYou must provide the following options:
The following options are optional:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论