Skip to content

Commit

Permalink
feat: add multi-platform support; support old osx version
Browse files Browse the repository at this point in the history
  • Loading branch information
rikugun committed Apr 25, 2024
1 parent 1085be1 commit 67e74ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
},
{
name: '@electron-forge/maker-zip',
platforms: ['darwin'],
platforms: ['darwin','linux','windows'],
},
{
name: '@electron-forge/maker-deb',
Expand Down
2 changes: 1 addition & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let serverEntry = path.join(__dirname, 'server/main.js')
if (!fs.existsSync(serverEntry)) {
serverEntry = path.join(__dirname, '../server/main.js')
}
const appData = process.env.APPDATA || (process.platform == 'darwin' ? process.env.HOME + '/Library/ApplicationSupport' : process.env.HOME + "/.local/share")
const appData = process.env.APPDATA || (process.platform == 'darwin' ? process.env.HOME + '/Library/Application Support' : process.env.HOME + "/.local/share")
const userDataDir = path.join(appData, 'fuxa-app', 'data')

if (!fs.existsSync(userDataDir)) {
Expand Down

0 comments on commit 67e74ea

Please sign in to comment.