mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 07:28:08 +03:00
👕
This commit is contained in:
parent
0a7b62cd06
commit
8cd788e00f
@ -20,7 +20,7 @@ module.exports = function () {
|
||||
return appResourcePath
|
||||
}
|
||||
|
||||
function isAtomRepoPath(repoPath) {
|
||||
function isAtomRepoPath (repoPath) {
|
||||
let packageJsonPath = path.join(repoPath, 'package.json')
|
||||
if (fs.statSyncNoException(packageJsonPath)) {
|
||||
let packageJson = CSON.readFileSync(packageJsonPath)
|
||||
|
@ -4,8 +4,6 @@ if (typeof snapshotResult !== 'undefined') {
|
||||
|
||||
const startTime = Date.now()
|
||||
|
||||
const electron = require('electron')
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
const yargs = require('yargs')
|
||||
const getDevResourcePath = require('./get-dev-resource-path')
|
||||
@ -22,8 +20,6 @@ if (args.resourcePath) {
|
||||
resourcePath = args.resourcePath
|
||||
} else {
|
||||
const stableResourcePath = path.dirname(path.dirname(__dirname))
|
||||
const defaultRepositoryPath = path.join(electron.app.getPath('home'), 'github', 'atom')
|
||||
|
||||
if (args.dev || args.test || args.benchmark || args.benchmarkTest) {
|
||||
resourcePath = getDevResourcePath() || stableResourcePath
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user