-
-
Notifications
You must be signed in to change notification settings - Fork 95
Extra files #230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extra files #230
Changes from all commits
9bd4b29
92930ba
075308a
993ad13
ea94a73
20a5c16
a825ba2
4f6fb0e
608a454
210bcec
183d6bf
35e0459
9869cda
6043353
f9a0103
e006bb3
df1ed48
e23113e
710ce02
f9c3fe5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -265,6 +265,7 @@ interface EnvironmentVariables { | |
NATIVEPHP_PICTURES_PATH: string; | ||
NATIVEPHP_VIDEOS_PATH: string; | ||
NATIVEPHP_RECENT_PATH: string; | ||
NATIVEPHP_EXTRAS_PATH: string; | ||
// Cache variables | ||
APP_SERVICES_CACHE?: string; | ||
APP_PACKAGES_CACHE?: string; | ||
|
@@ -293,6 +294,9 @@ function getDefaultEnvironmentVariables(secret?: string, apiPort?: number): Envi | |
NATIVEPHP_PICTURES_PATH: getPath('pictures'), | ||
NATIVEPHP_VIDEOS_PATH: getPath('videos'), | ||
NATIVEPHP_RECENT_PATH: getPath('recent'), | ||
NATIVEPHP_EXTRAS_PATH: app.isPackaged | ||
? join(process.resourcesPath, '..', 'extras') | ||
: join(process.env.APP_PATH, 'extras'), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I installed the electron package from a symlinked directory. Using |
||
}; | ||
|
||
// Only if the server has already started | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ abstract protected function sourcePath(string $path = ''): string; | |
'dist', | ||
'build', | ||
'temp', | ||
'extras', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't need to pack it up in the archive. Otherwise the extra files will be included in the app twice |
||
'docker', | ||
'packages', | ||
'**/.github', | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original
join(app.getAppPath(), 'nativephp', 'extras')
pointed to
playground.app/Contents/Resources/app.asar/nativephp/extras
Electron builder automatically the extra files in
playground.app/Contents/extras
.Using
process.resourcesPath
instead points it to the right place