Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GodCed committed Mar 5, 2018
1 parent 23ee685 commit b471ec8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const rebuild = require('electron-rebuild').rebuild;

packager({
dir: '.',
ignore: 'google-api-key.json',
afterCopy: [
(buildPath, electronVersion, platform, arch, callback) => {
rebuild({ buildPath, electronVersion, arch })
Expand Down
11 changes: 10 additions & 1 deletion settings.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
const LocalStorage = require('node-localstorage').LocalStorage;
const os = require('os');
const path = require('path');
const fs = require('fs');

const localStorage = new LocalStorage('./config');
const odasStudioPath = path.join(os.homedir(), 'odas-studio');
const storagePath = path.join(odasStudioPath, 'config');

if(!fs.existsSync(odasStudioPath))
fs.mkdirSync(odasStudioPath);

const localStorage = new LocalStorage(storagePath);

class AppSettings {
constructor() {
Expand Down

0 comments on commit b471ec8

Please sign in to comment.