Skip to content

Commit

Permalink
feat(nsis): add APP_EXECUTABLE_DIR
Browse files Browse the repository at this point in the history
Close #1612
  • Loading branch information
develar committed Jun 12, 2017
1 parent 1145cb9 commit 8e957c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/electron-builder/templates/nsis/portable.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Section

!insertmacro extractEmbeddedAppPackage

System::Call 'Kernel32::SetEnvironmentVariable(t, t)i ("PORTABLE_EXECUTABLE_DIR", "$EXEDIR").r0'
ExecWait "$INSTDIR\${APP_EXECUTABLE_FILENAME}"

SetOutPath $PLUGINSDIR
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/test-app-one/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h1>Hello World!</h1>
Chrome <script>document.write(process.versions.chrome)</script>,
and Electron <script>document.write(process.versions.electron)</script>.

and Electron <script>document.write(process.versions.electron)</script>.
Env: <script>document.write(JSON.stringify(process.env, null, 2))</script>.

<button onclick="saveAppData()">Save app data</button>
</body>
Expand Down

0 comments on commit 8e957c8

Please sign in to comment.