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
275ea015
Commit
275ea015
authored
Feb 22, 2024
by
Jeffrey Morgan
Browse files
restore windows build flags and compression
parent
8782dd56
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/ollama.iss
app/ollama.iss
+1
-1
scripts/build_windows.ps1
scripts/build_windows.ps1
+2
-2
No files found.
app/ollama.iss
View file @
275ea015
...
@@ -37,7 +37,7 @@ PrivilegesRequired=lowest
...
@@ -37,7 +37,7 @@ PrivilegesRequired=lowest
OutputBaseFilename="OllamaSetup"
OutputBaseFilename="OllamaSetup"
SetupIconFile={#MyIcon}
SetupIconFile={#MyIcon}
UninstallDisplayIcon={uninstallexe}
UninstallDisplayIcon={uninstallexe}
Compression=
zip
Compression=
lzma2
SolidCompression=no
SolidCompression=no
WizardStyle=modern
WizardStyle=modern
ChangesEnvironment=yes
ChangesEnvironment=yes
...
...
scripts/build_windows.ps1
View file @
275ea015
...
@@ -53,7 +53,7 @@ function buildOllama() {
...
@@ -53,7 +53,7 @@ function buildOllama() {
write-host
"Building ollama CLI"
write-host
"Building ollama CLI"
&
go
generate
.
/...
&
go
generate
.
/...
if
(
$LASTEXITCODE
-ne
0
)
{
exit
(
$LASTEXITCODE
)}
if
(
$LASTEXITCODE
-ne
0
)
{
exit
(
$LASTEXITCODE
)}
&
go
build
-ldflags
"-X=github.com/jmorganca/ollama/version.Version=
$
script
:
VERSION
-X=github.com/jmorganca/ollama/server.mode=release"
.
&
go
build
-ldflags
"
-s -w
-X=github.com/jmorganca/ollama/version.Version=
$
script
:
VERSION
-X=github.com/jmorganca/ollama/server.mode=release"
.
if
(
$LASTEXITCODE
-ne
0
)
{
exit
(
$LASTEXITCODE
)}
if
(
$LASTEXITCODE
-ne
0
)
{
exit
(
$LASTEXITCODE
)}
if
(
"
${env:KEY_CONTAINER}
"
)
{
if
(
"
${env:KEY_CONTAINER}
"
)
{
&
"
${script:SignTool}
"
sign
/v
/fd
sha256
/t
http://timestamp.digicert.com
/f
"
${script:OLLAMA_CERT}
"
`
&
"
${script:SignTool}
"
sign
/v
/fd
sha256
/t
http://timestamp.digicert.com
/f
"
${script:OLLAMA_CERT}
"
`
...
@@ -68,7 +68,7 @@ function buildApp() {
...
@@ -68,7 +68,7 @@ function buildApp() {
write-host
"Building Ollama App"
write-host
"Building Ollama App"
cd
"
${script:SRC_DIR}
\app"
cd
"
${script:SRC_DIR}
\app"
&
windres
-l
0
-o
ollama.syso
ollama.rc
&
windres
-l
0
-o
ollama.syso
ollama.rc
&
go
build
-ldflags
"-H windowsgui -X=github.com/jmorganca/ollama/version.Version=
$
script
:
VERSION
-X=github.com/jmorganca/ollama/server.mode=release"
.
&
go
build
-ldflags
"
-s -w
-H windowsgui -X=github.com/jmorganca/ollama/version.Version=
$
script
:
VERSION
-X=github.com/jmorganca/ollama/server.mode=release"
.
if
(
$LASTEXITCODE
-ne
0
)
{
exit
(
$LASTEXITCODE
)}
if
(
$LASTEXITCODE
-ne
0
)
{
exit
(
$LASTEXITCODE
)}
if
(
"
${env:KEY_CONTAINER}
"
)
{
if
(
"
${env:KEY_CONTAINER}
"
)
{
&
"
${script:SignTool}
"
sign
/v
/fd
sha256
/t
http://timestamp.digicert.com
/f
"
${script:OLLAMA_CERT}
"
`
&
"
${script:SignTool}
"
sign
/v
/fd
sha256
/t
http://timestamp.digicert.com
/f
"
${script:OLLAMA_CERT}
"
`
...
...
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