Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
7406881e
Commit
7406881e
authored
Jul 07, 2023
by
Jeffrey Morgan
Committed by
Jeffrey Morgan
Jul 07, 2023
Browse files
write version at build time
parent
962d3512
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
app/forge.config.ts
app/forge.config.ts
+6
-1
No files found.
app/forge.config.ts
View file @
7406881e
import
type
{
ForgeConfig
}
from
'
@electron-forge/shared-types
'
import
type
{
ForgeConfig
,
ResolvedForgeConfig
,
ForgeMakeResult
}
from
'
@electron-forge/shared-types
'
import
{
MakerSquirrel
}
from
'
@electron-forge/maker-squirrel
'
import
{
MakerSquirrel
}
from
'
@electron-forge/maker-squirrel
'
import
{
MakerZIP
}
from
'
@electron-forge/maker-zip
'
import
{
MakerZIP
}
from
'
@electron-forge/maker-zip
'
import
{
PublisherGithub
}
from
'
@electron-forge/publisher-github
'
import
{
PublisherGithub
}
from
'
@electron-forge/publisher-github
'
...
@@ -49,6 +49,11 @@ const config: ForgeConfig = {
...
@@ -49,6 +49,11 @@ const config: ForgeConfig = {
prerelease
:
true
,
prerelease
:
true
,
}),
}),
],
],
hooks
:
{
readPackageJson
:
async
(
_
,
packageJson
)
=>
{
return
{
...
packageJson
,
version
:
process
.
env
.
VERSION
||
packageJson
.
version
}
},
},
plugins
:
[
plugins
:
[
new
AutoUnpackNativesPlugin
({}),
new
AutoUnpackNativesPlugin
({}),
new
WebpackPlugin
({
new
WebpackPlugin
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment