Skip to content
This repository has been archived by the owner on Jun 29, 2019. It is now read-only.

Commit

Permalink
Updated plugin directories again, because squirrel installer removes …
Browse files Browse the repository at this point in the history
…all plugins if user update app
  • Loading branch information
Heejin committed Mar 23, 2016
1 parent 54acac8 commit 0365605
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions app/main-es6/worker/conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

const path = require('path');

const HAIN_APPDATA = `${process.env.LOCALAPPDATA}/hain`;
const LOCAL_STORAGE_DIR = `${HAIN_APPDATA}/localStorages`;
const HAIN_USER_PATH = `${process.env.LOCALAPPDATA}/hain-user`;
const LOCAL_STORAGE_DIR = `${HAIN_USER_PATH}/localStorages`;

const INTERNAL_PLUGIN_REPO = path.join(__dirname, '../plugins');
const MAIN_PLUGIN_REPO = path.resolve(`${HAIN_APPDATA}/plugins`);
const DEV_PLUGIN_REPO = path.resolve(`${HAIN_APPDATA}/devplugins`);
const MAIN_PLUGIN_REPO = path.resolve(`${HAIN_USER_PATH}/plugins`);
const DEV_PLUGIN_REPO = path.resolve(`${HAIN_USER_PATH}/devplugins`);

const PLUGIN_REPOS = [
INTERNAL_PLUGIN_REPO,
Expand Down
6 changes: 3 additions & 3 deletions docs/plugin-directories.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

There are two plugin directories for Hain:

`MAIN_PLUGIN_REPO`: "`${process.env.LOCALAPPDATA}/hain/plugins`"
`DEV_PLUGIN_REPO`: "`${process.env.LOCALAPPDATA}/hain/devplugins`"
`MAIN_PLUGIN_REPO`: "`${process.env.LOCALAPPDATA}/hain-user/plugins`"
`DEV_PLUGIN_REPO`: "`${process.env.LOCALAPPDATA}/hain-user/devplugins`"

(e.g. C:\\Users\\John\\AppData\\Local\\hain\\...)
(e.g. C:\\Users\\John\\AppData\\Local\\hain-user\\...)

`MAIN_PLUGIN_REPO` is managed by hpm(hain-package-manager). so it's not safe to develop plugins.
so, you should place your plugins to `DEV_PLUGIN_REPO` for the development.

0 comments on commit 0365605

Please sign in to comment.