GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — operatorlm/build.bat at main · aralde/operatorlm

Expand file tree

/

build.bat

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
31 lines (28 loc) · 1.06 KB
/

build.bat

Copy path

File metadata and controls

31 lines (28 loc) · 1.06 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
REM Build the Windows release binary as a GUI app so no console window appears
REM when launched. Logs still go to %USERPROFILE%\.operatorlm\operatorlm.log
REM (see setupLogging in main.go).
REM
REM The build-time version is read from the VERSION env var; if unset we try
REM `git describe`. An empty version means "dev build" and the OTA updater
REM will refuse to self-update.
setlocal
pushd "%~dp0"
set "VER=%VERSION%"
if "%VER%"=="" (
for /f "delims=" %%v in ('git describe --tags --always --dirty 2^>nul') do set "VER=%%v"
)
REM -s -w strip symbols/debug info, -H=windowsgui hides console window.
set "LDFLAGS=-H=windowsgui -s -w"
if not "%VER%"=="" (
set "LDFLAGS=%LDFLAGS% -X github.com/aralde/operatorlm/internal/version.Version=%VER%"
)
REM -trimpath / -buildvcs=false reduce SmartScreen/Defender false positives.
go build -trimpath -buildvcs=false -ldflags="%LDFLAGS%" -o OperatorLM.exe . || exit /b 1
if "%VER%"=="" (
echo Built OperatorLM.exe windowsgui mode, dev build
) else (
echo Built OperatorLM.exe windowsgui mode, version=%VER%
)
popd
endlocal
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.