mirror of
https://github.com/ollama/ollama.git
synced 2025-03-31 16:08:51 +02:00
write version at build time
This commit is contained in:
parent
962d351281
commit
7406881eeb
@ -1,4 +1,4 @@
|
||||
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 { MakerZIP } from '@electron-forge/maker-zip'
|
||||
import { PublisherGithub } from '@electron-forge/publisher-github'
|
||||
@ -49,6 +49,11 @@ const config: ForgeConfig = {
|
||||
prerelease: true,
|
||||
}),
|
||||
],
|
||||
hooks: {
|
||||
readPackageJson: async (_, packageJson) => {
|
||||
return { ...packageJson, version: process.env.VERSION || packageJson.version }
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
new AutoUnpackNativesPlugin({}),
|
||||
new WebpackPlugin({
|
||||
|
Loading…
x
Reference in New Issue
Block a user