mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 02:36:36 +00:00
fix build env
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
var fs = require('fs')
|
||||
var path = require('path')
|
||||
var url = path.resolve(process.cwd(), './submodules/ace/src-min')
|
||||
|
||||
var rootUrl = process.cwd()
|
||||
if (rootUrl === '/') rootUrl = require('remote').require('app').getAppPath()
|
||||
var url = path.resolve(rootUrl, './submodules/ace/src-min')
|
||||
console.log(url)
|
||||
|
||||
module.exports = fs.readdirSync(url)
|
||||
.filter(function (file) {
|
||||
|
||||
Reference in New Issue
Block a user