Skip to content

Commit

Permalink
Fixing settings folder #158
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Nov 21, 2021
1 parent e2d03c0 commit e495f2f
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion app/application/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if (app.isPackaged === false) {
/**
* Get Authme folder path
*/
const folder_path = dev ? path.join(process.env.APPDATA, "Levminer", "Authme Dev") : path.join(process.env.APPDATA, "Levminer")
const folder_path = dev ? path.join(process.env.APPDATA, "Levminer", "Authme Dev") : path.join(process.env.APPDATA, "Levminer", "Authme")

/**
* Read settings
Expand Down
2 changes: 1 addition & 1 deletion app/confirm/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if (app.isPackaged === false) {
/**
* Get Authme folder path
*/
const folder_path = dev ? path.join(process.env.APPDATA, "Levminer", "Authme Dev") : path.join(process.env.APPDATA, "Levminer")
const folder_path = dev ? path.join(process.env.APPDATA, "Levminer", "Authme Dev") : path.join(process.env.APPDATA, "Levminer", "Authme")

/**
* Read settings
Expand Down
2 changes: 1 addition & 1 deletion app/edit/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (app.isPackaged === false) {
/**
* Get Authme folder path
*/
const folder_path = dev ? path.join(process.env.APPDATA, "Levminer", "Authme Dev") : path.join(process.env.APPDATA, "Levminer")
const folder_path = dev ? path.join(process.env.APPDATA, "Levminer", "Authme Dev") : path.join(process.env.APPDATA, "Levminer", "Authme")

/**
* Read settings
Expand Down
2 changes: 1 addition & 1 deletion app/export/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ let file
/**
* Get Authme folder path
*/
const folder_path = dev ? path.join(process.env.APPDATA, "Levminer", "Authme Dev") : path.join(process.env.APPDATA, "Levminer")
const folder_path = dev ? path.join(process.env.APPDATA, "Levminer", "Authme Dev") : path.join(process.env.APPDATA, "Levminer", "Authme")

/**
* Read settings
Expand Down
2 changes: 1 addition & 1 deletion app/import/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if (app.isPackaged === false) {
/**
* Get Authme folder path
*/
const folder_path = dev ? path.join(process.env.APPDATA, "Levminer", "Authme Dev") : path.join(process.env.APPDATA, "Levminer")
const folder_path = dev ? path.join(process.env.APPDATA, "Levminer", "Authme Dev") : path.join(process.env.APPDATA, "Levminer", "Authme")

/**
* Read settings
Expand Down
2 changes: 1 addition & 1 deletion app/landing/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if (app.isPackaged === false) {
/**
* Get Authme folder path
*/
const folder_path = dev ? path.join(process.env.APPDATA, "Levminer", "Authme Dev") : path.join(process.env.APPDATA, "Levminer")
const folder_path = dev ? path.join(process.env.APPDATA, "Levminer", "Authme Dev") : path.join(process.env.APPDATA, "Levminer", "Authme")

/**
* Read settings
Expand Down
2 changes: 1 addition & 1 deletion app/settings/src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if (process.platform !== "win32" && process.platform !== "darwin") {
/**
* Get Authme folder path
*/
const folder_path = dev ? path.join(process.env.APPDATA, "Levminer", "Authme Dev") : path.join(process.env.APPDATA, "Levminer")
const folder_path = dev ? path.join(process.env.APPDATA, "Levminer", "Authme Dev") : path.join(process.env.APPDATA, "Levminer", "Authme")

/**
* Read settings
Expand Down
9 changes: 3 additions & 6 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,9 @@ if (number.startsWith("alpha")) {
// ? remote module
remote.initialize()

// ? folder
const folder = process.env.APPDATA

// init folders
const full_path = path.join(folder, "Levminer")
const folder_path = dev ? path.join(folder, "Levminer/Authme Dev") : path.join(folder, "Levminer/Authme")
// ? init folders
const full_path = path.join(process.env.APPDATA, "Levminer")
const folder_path = dev ? path.join(process.env.APPDATA, "Levminer", "Authme Dev") : path.join(process.env.APPDATA, "Levminer", "Authme")

// check if folders exists
if (!fs.existsSync(full_path)) {
Expand Down

0 comments on commit e495f2f

Please sign in to comment.