chore: prepare release configuration and finalize build scripts
This commit is contained in:
@@ -0,0 +1,33 @@
|
|||||||
|
appId: com.voicext.app
|
||||||
|
productName: VoiceXt
|
||||||
|
directories:
|
||||||
|
output: out/make
|
||||||
|
buildResources: resources
|
||||||
|
|
||||||
|
files:
|
||||||
|
- out/main/index.js
|
||||||
|
- out/preload/index.js
|
||||||
|
- out/renderer/**/*
|
||||||
|
- package.json
|
||||||
|
|
||||||
|
extraResources:
|
||||||
|
- from: bin
|
||||||
|
to: bin
|
||||||
|
filter:
|
||||||
|
- "**/*"
|
||||||
|
|
||||||
|
win:
|
||||||
|
target: nsis
|
||||||
|
icon: resources/icon.png
|
||||||
|
artifactName: "${productName}-Setup-${version}.${ext}"
|
||||||
|
|
||||||
|
nsis:
|
||||||
|
oneClick: false
|
||||||
|
allowToChangeInstallationDirectory: true
|
||||||
|
shortcutName: VoiceXt
|
||||||
|
createDesktopShortcut: true
|
||||||
|
|
||||||
|
publish:
|
||||||
|
provider: github
|
||||||
|
owner: truncgil
|
||||||
|
repo: voicext
|
||||||
+3
-2
@@ -1,9 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "voicext",
|
"name": "voicext",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Local AI Transcription Tool",
|
"productName": "VoiceXt",
|
||||||
|
"description": "High Performance Local AI Transcription Tool",
|
||||||
"main": "./out/main/index.js",
|
"main": "./out/main/index.js",
|
||||||
"author": "Voicext",
|
"author": "Truncgil Software",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "electron-vite dev",
|
"dev": "electron-vite dev",
|
||||||
"build": "electron-vite build",
|
"build": "electron-vite build",
|
||||||
|
|||||||
@@ -67,9 +67,15 @@ async function setup() {
|
|||||||
fs.unlinkSync(whisperZipPath)
|
fs.unlinkSync(whisperZipPath)
|
||||||
|
|
||||||
console.log('Downloading Base Model (140MB)...')
|
console.log('Downloading Base Model (140MB)...')
|
||||||
const modelPath = path.join(modelsDir, 'ggml-base.bin')
|
const baseModelPath = path.join(modelsDir, 'ggml-base.bin')
|
||||||
if (!fs.existsSync(modelPath)) {
|
if (!fs.existsSync(baseModelPath)) {
|
||||||
await downloadFile('https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.bin', modelPath)
|
await downloadFile('https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.bin', baseModelPath)
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log('Downloading Small Model (460MB)...')
|
||||||
|
const smallModelPath = path.join(modelsDir, 'ggml-small.bin')
|
||||||
|
if (!fs.existsSync(smallModelPath)) {
|
||||||
|
await downloadFile('https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-small.bin', smallModelPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('Setup Complete!')
|
console.log('Setup Complete!')
|
||||||
|
|||||||
Reference in New Issue
Block a user