Rename project to GoSentry
Rename the application, Go module path, command package, build artifacts, resource script, and embedded icon assets from PySentry/pysentry to GoSentry/gosentry. Move portable settings to gosentry.yaml while reading legacy pysentry.yaml during the transition, then rewrite settings under the new name. Update Windows and Linux autostart integration to use GoSentry names while cleaning up legacy PySentry registry, desktop-entry, and systemd artifacts. Refresh README, architecture notes, roadmap, changelog, and release examples for version 0.3.0.
This commit is contained in:
@@ -3,7 +3,7 @@ setlocal enabledelayedexpansion
|
||||
|
||||
REM Double-clicking a .bat file can start it with an arbitrary working
|
||||
REM directory. Move to the repository root (the parent of scripts\) before using
|
||||
REM relative paths such as .\cmd\pysentry and packaging\windows\pysentry.rc.
|
||||
REM relative paths such as .\cmd\gosentry and packaging\windows\gosentry.rc.
|
||||
cd /d "%~dp0\.."
|
||||
|
||||
for /f "tokens=4" %%V in ('findstr /C:"var Version" src\core\version.go') do set "VERSION=%%~V"
|
||||
@@ -14,7 +14,7 @@ REM Optional first argument allows CI or a developer to choose another output
|
||||
REM path. The default keeps all generated binaries under dist\ so the source tree
|
||||
REM stays clean and the old bin\ folder is no longer needed.
|
||||
set "OUTPUT=%~1"
|
||||
if "%OUTPUT%"=="" set "OUTPUT=dist\windows\pysentry-%VERSION%-windows-amd64.exe"
|
||||
if "%OUTPUT%"=="" set "OUTPUT=dist\windows\gosentry-%VERSION%-windows-amd64.exe"
|
||||
|
||||
REM Prefer the standard Go installer path on Windows, but fall back to PATH for
|
||||
REM machines where Go was installed by another package manager.
|
||||
@@ -37,17 +37,17 @@ for %%I in ("%OUTPUT%") do set "OUTDIR=%%~dpI"
|
||||
if not exist "%OUTDIR%" mkdir "%OUTDIR%"
|
||||
|
||||
REM windres embeds the .ico file into the PE executable so Windows Explorer,
|
||||
REM shortcuts, and the taskbar can show the PySentry icon. The Go embed package
|
||||
REM shortcuts, and the taskbar can show the GoSentry icon. The Go embed package
|
||||
REM handles Fyne's runtime icon, but Explorer reads this Windows resource instead.
|
||||
where windres.exe >nul 2>nul
|
||||
if %ERRORLEVEL%==0 (
|
||||
windres.exe -O coff -o cmd\pysentry\rsrc_windows_amd64.syso packaging\windows\pysentry.rc
|
||||
windres.exe -O coff -o cmd\gosentry\rsrc_windows_amd64.syso packaging\windows\gosentry.rc
|
||||
)
|
||||
|
||||
REM -trimpath removes local machine paths from the binary, -s -w reduce binary
|
||||
REM size, and -H=windowsgui prevents a separate console window from opening when
|
||||
REM the GUI app starts from Explorer or a shortcut.
|
||||
"%GOEXE%" build -trimpath -ldflags "-s -w -H=windowsgui -X github.com/pysentry/pysentry/src/core.Version=%VERSION%" -o "%OUTPUT%" .\cmd\pysentry
|
||||
"%GOEXE%" build -trimpath -ldflags "-s -w -H=windowsgui -X gitea.mixdep.ru/mix/gosentry/src/core.Version=%VERSION%" -o "%OUTPUT%" .\cmd\gosentry
|
||||
if errorlevel 1 exit /b 1
|
||||
|
||||
REM Icons are embedded into the executable, so no assets directory is copied next
|
||||
|
||||
Reference in New Issue
Block a user