Commit 3c3c09a5 authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

set version at build time

parent 68e6b455
...@@ -6,12 +6,17 @@ import { MakerRpm } from '@electron-forge/maker-rpm' ...@@ -6,12 +6,17 @@ import { MakerRpm } from '@electron-forge/maker-rpm'
import { PublisherGithub } from '@electron-forge/publisher-github' import { PublisherGithub } from '@electron-forge/publisher-github'
import { AutoUnpackNativesPlugin } from '@electron-forge/plugin-auto-unpack-natives' import { AutoUnpackNativesPlugin } from '@electron-forge/plugin-auto-unpack-natives'
import { WebpackPlugin } from '@electron-forge/plugin-webpack' import { WebpackPlugin } from '@electron-forge/plugin-webpack'
import * as path from 'path'
import * as fs from 'fs'
import { mainConfig } from './webpack.main.config' import { mainConfig } from './webpack.main.config'
import { rendererConfig } from './webpack.renderer.config' import { rendererConfig } from './webpack.renderer.config'
const packageJson = JSON.parse(fs.readFileSync(path.resolve(__dirname, './package.json'), 'utf8'))
const config: ForgeConfig = { const config: ForgeConfig = {
packagerConfig: { packagerConfig: {
appVersion: process.env.VERSION || packageJson.version,
asar: true, asar: true,
icon: './images/icon', icon: './images/icon',
extraResource: ['../ollama', '../ggml-metal.metal'], extraResource: ['../ollama', '../ggml-metal.metal'],
......
{ {
"name": "ollama", "name": "ollama",
"productName": "Ollama", "productName": "Ollama",
"version": "0.0.2", "version": "0.0.0",
"description": "ollama", "description": "ollama",
"main": ".webpack/main", "main": ".webpack/main",
"scripts": { "scripts": {
......
{ {
"name": "web", "name": "web",
"version": "0.1.0", "version": "0.0.0",
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",
"build": "next build", "build": "next build",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment