Skip to content

Commit

Permalink
Fixed temp path for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
VitalyEmelyanov committed Apr 12, 2020
1 parent 8075455 commit c58c359
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rtmp-restreamer",
"version": "1.2.2",
"version": "1.2.3",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
4 changes: 3 additions & 1 deletion src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ export const store = new Vuex.Store({
})

const nginxTemplatePath = path.join(__static, '/rtmp/nginx.conf.template')
const nginxConfigPath = path.join(remote.app.getAppPath('temp'), '/nginx.conf')
const nginxConfigPath = path.join(remote.app.getPath('appData'), '/nginx.conf')

console.log('nginxConfigPath', nginxConfigPath)

let template = fs.readFileSync(nginxTemplatePath, 'utf8')

Expand Down

0 comments on commit c58c359

Please sign in to comment.