You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 7, 2018. It is now read-only.
Ones that don't exist on disk (i. e. when files are concatenated or renamed in the current pipe, or when).
This would probably require rewriting the asar/lib/filesystem module in such a way that it doesn't deal with fs directly. Even better would be to make a backend for node-archiver (that's what I'm doing now) or something.
Current implementation is flawed. For example, see the asar branch of Songbee/desktop. Everything works well, except that it outputs original files somehow (instead of compiled ones) and they're shifted a bit:
$gulp$cddist$asaresongbee.asar.$head-n8src/main.jsortelectron,{ app, BrowserWindow, Menu, Tray }from"electron";importpathfrom"path";importurlfrom"url";importManagerfrom"./backend";global.backend=newManager();letmainWindow,tray;// keep a reference$tail-n4src/main.jsapp.on("will-quit",()=>{global.backend.quit();});imp
Here's the gulp task for reference:
gulp.task("build",()=>{constf={noModules: filter(["!node_modules/**/*"],{restore: true}),js: filter(["**/*.js"],{restore: true})};gulp.src(["./package.json","./node_modules*/**","./src*/**",// Do not include Electron and READMEs (which are surprisingly big)"!./node_modules/.bin/**","!./node_modules/electron*/**","!./node_modules/gulp*/**","!./node_modules/gulp*","!./**/README*",]).pipe(f.noModules).pipe(f.js).pipe(sourcemaps.init()).pipe(babel()).pipe(sourcemaps.write()).pipe(f.js.restore).pipe(f.noModules.restore).pipe(asar("songbee.asar")).pipe(gulp.dest("./dist"));});
Ones that don't exist on disk (i. e. when files are concatenated or renamed in the current pipe, or when).
This would probably require rewriting the
asar/lib/filesystem
module in such a way that it doesn't deal withfs
directly. Even better would be to make a backend for node-archiver (that's what I'm doing now) or something.Branch:
generated-files
The text was updated successfully, but these errors were encountered: