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
7ad9844a
Commit
7ad9844a
authored
Feb 15, 2024
by
jmorganca
Browse files
set exe metadata using resource files
parent
e43648af
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
app/.gitignore
app/.gitignore
+1
-0
app/ollama.rc
app/ollama.rc
+30
-0
scripts/build_windows.ps1
scripts/build_windows.ps1
+1
-0
No files found.
app/.gitignore
0 → 100644
View file @
7ad9844a
ollama.syso
app/ollama.rc
0 → 100644
View file @
7ad9844a
#include <winver.h>
VS_VERSION_INFO VERSIONINFO
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x40004L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "CompanyName", "Ollama Inc."
VALUE "FileDescription", "Ollama"
VALUE "InternalName", "Ollama"
VALUE "OriginalFilename", "ollama app.exe"
VALUE "ProductName", "Ollama"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END
scripts/build_windows.ps1
View file @
7ad9844a
...
...
@@ -65,6 +65,7 @@ function buildOllama() {
function
buildApp
()
{
write-host
"Building Ollama App"
cd
"
${script:SRC_DIR}
\app"
&
windres
-l
0
-o
ollama.syso
ollama.rc
&
go
build
"-ldflags=-H windowsgui -w -s ""-X=github.com/jmorganca/ollama/version.Version=
$
script
:
VERSION
"" ""-X=github.com/jmorganca/ollama/server.mode=release"""
.
if
(
$LASTEXITCODE
-ne
0
)
{
exit
(
$LASTEXITCODE
)}
if
(
"
${env:KEY_CONTAINER}
"
)
{
...
...
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