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
3c3c09a5
Commit
3c3c09a5
authored
Jul 06, 2023
by
Jeffrey Morgan
Browse files
set version at build time
parent
68e6b455
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
app/forge.config.ts
app/forge.config.ts
+5
-0
app/package.json
app/package.json
+1
-1
web/package.json
web/package.json
+1
-1
No files found.
app/forge.config.ts
View file @
3c3c09a5
...
...
@@ -6,12 +6,17 @@ import { MakerRpm } from '@electron-forge/maker-rpm'
import
{
PublisherGithub
}
from
'
@electron-forge/publisher-github
'
import
{
AutoUnpackNativesPlugin
}
from
'
@electron-forge/plugin-auto-unpack-natives
'
import
{
WebpackPlugin
}
from
'
@electron-forge/plugin-webpack
'
import
*
as
path
from
'
path
'
import
*
as
fs
from
'
fs
'
import
{
mainConfig
}
from
'
./webpack.main.config
'
import
{
rendererConfig
}
from
'
./webpack.renderer.config
'
const
packageJson
=
JSON
.
parse
(
fs
.
readFileSync
(
path
.
resolve
(
__dirname
,
'
./package.json
'
),
'
utf8
'
))
const
config
:
ForgeConfig
=
{
packagerConfig
:
{
appVersion
:
process
.
env
.
VERSION
||
packageJson
.
version
,
asar
:
true
,
icon
:
'
./images/icon
'
,
extraResource
:
[
'
../ollama
'
,
'
../ggml-metal.metal
'
],
...
...
app/package.json
View file @
3c3c09a5
{
"name"
:
"ollama"
,
"productName"
:
"Ollama"
,
"version"
:
"0.0.
2
"
,
"version"
:
"0.0.
0
"
,
"description"
:
"ollama"
,
"main"
:
".webpack/main"
,
"scripts"
:
{
...
...
web/package.json
View file @
3c3c09a5
{
"name"
:
"web"
,
"version"
:
"0.
1
.0"
,
"version"
:
"0.
0
.0"
,
"scripts"
:
{
"dev"
:
"next dev"
,
"build"
:
"next build"
,
...
...
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