forked from mirrors/Scribe.js
...
This commit is contained in:
parent
3123c5e394
commit
c6caddc57c
2 changed files with 6 additions and 6 deletions
6
dist/scribe.js
vendored
6
dist/scribe.js
vendored
|
@ -47,14 +47,14 @@ exports.default = function () {
|
|||
_package2.default.main = opts.publicUri + ':' + _path2.default.join(String(opts.web.client.port), opts.basePath);
|
||||
|
||||
// save
|
||||
_fs2.default.writeFileSync(__dirname + '/native/package.json', (0, _stringify2.default)(_package2.default, null, 4), { encoding: 'utf8' });
|
||||
_fs2.default.writeFileSync(__dirname + '/../native/package.json', (0, _stringify2.default)(_package2.default, null, 4), { encoding: 'utf8' });
|
||||
|
||||
var nw = new _nwBuilder2.default((0, _assign2.default)({
|
||||
platforms: ['win', 'osx', 'linux'],
|
||||
buildDir: __dirname + '/public/native',
|
||||
buildDir: __dirname + '/../public/native',
|
||||
version: '0.12.3',
|
||||
zip: true
|
||||
}, opts.nwjs, { files: './native/**/**' }));
|
||||
}, opts.nwjs, { files: __dirname + '/../native/**/**' }));
|
||||
|
||||
if (opts.debug) {
|
||||
nw.on('log', function (d) {
|
||||
|
|
|
@ -93,14 +93,14 @@ export default function (id = process.pid, opts = rc('scribe', defaultOpts)) {
|
|||
nativePackage.main = `${opts.publicUri}:${path.join(String(opts.web.client.port), opts.basePath)}`;
|
||||
|
||||
// save
|
||||
fs.writeFileSync(`${__dirname}/native/package.json`, JSON.stringify(nativePackage, null, 4), {encoding: 'utf8'});
|
||||
fs.writeFileSync(`${__dirname}/../native/package.json`, JSON.stringify(nativePackage, null, 4), {encoding: 'utf8'});
|
||||
|
||||
const nw = new NwBuilder(Object.assign({
|
||||
platforms: ['win', 'osx', 'linux'],
|
||||
buildDir: `${__dirname}/public/native`,
|
||||
buildDir: `${__dirname}/../public/native`,
|
||||
version: '0.12.3',
|
||||
zip: true
|
||||
}, opts.nwjs, {files: './native/**/**'}));
|
||||
}, opts.nwjs, {files: `${__dirname}/../native/**/**`}));
|
||||
|
||||
if (opts.debug) {
|
||||
nw.on('log', d => console.log(d));
|
||||
|
|
Loading…
Add table
Reference in a new issue