Skip to content

Commit b471ec8

Browse files
committed
Bug fixes
1 parent 23ee685 commit b471ec8

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

build.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const rebuild = require('electron-rebuild').rebuild;
33

44
packager({
55
dir: '.',
6+
ignore: 'google-api-key.json',
67
afterCopy: [
78
(buildPath, electronVersion, platform, arch, callback) => {
89
rebuild({ buildPath, electronVersion, arch })

settings.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
const LocalStorage = require('node-localstorage').LocalStorage;
2+
const os = require('os');
3+
const path = require('path');
4+
const fs = require('fs');
25

3-
const localStorage = new LocalStorage('./config');
6+
const odasStudioPath = path.join(os.homedir(), 'odas-studio');
7+
const storagePath = path.join(odasStudioPath, 'config');
8+
9+
if(!fs.existsSync(odasStudioPath))
10+
fs.mkdirSync(odasStudioPath);
11+
12+
const localStorage = new LocalStorage(storagePath);
413

514
class AppSettings {
615
constructor() {

0 commit comments

Comments
 (0)