Skip to content

Commit

Permalink
fix: in prebuild .exe settings was not stores as storage folder was n…
Browse files Browse the repository at this point in the history
…ot created
  • Loading branch information
olzzon committed May 22, 2021
1 parent 3c16109 commit 0cc20e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"start-break": "node --inspect-brk ./build/server/index.js",
"start-gateway": "node ./build/gateway/index.js",
"start-gateway-dev": "node --inspect ./build/gateway/index.js",
"package": "yarn pkg ./build/server/index.js -t node12-win-x64 -o ./package/casparcg-clip-tool.exe",
"package": "yarn pkg .",
"package-gateway": "yarn pkg ./build/gateway/index.js -t node12-win-x64 -o ./package/cliptool-gateway.exe",
"release": "standard-version",
"prepareChangelog": "standard-version --prerelease",
Expand Down
Binary file modified package/casparcg-clip-tool.exe
Binary file not shown.
4 changes: 4 additions & 0 deletions src/server/utils/SettingsStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ export const loadSettings = () => {

export const saveSettings = () => {
var json = JSON.stringify(reduxState.settings[0].generics)
if (!fs.existsSync('storage')) {
fs.mkdirSync('storage')
}

fs.writeFile(
path.resolve('storage', 'settings.json'),
json,
Expand Down

0 comments on commit 0cc20e1

Please sign in to comment.