feat: implement cross-platform hotkey management and update frontend build infrastructure

This commit is contained in:
jahruz67
2026-05-08 15:54:36 -07:00
parent 25ab3accfa
commit 0cd56ca083
24 changed files with 453 additions and 325 deletions
+1
View File
@@ -0,0 +1 @@
1.67.0
+13 -1
View File
@@ -15,6 +15,18 @@ echo " wis-free-v3 - Linux Build Script"
echo "========================================"
echo ""
VERSION_FILE="$(dirname "$0")/VERSION"
APP_VERSION="dev"
if [ -f "$VERSION_FILE" ]; then
APP_VERSION="$(head -n1 "$VERSION_FILE" | tr -d '\r\n')"
APP_VERSION="$(echo "$APP_VERSION" | sed 's/^[[:space:]]*//;s/[[:space:]]*$//')"
fi
if [ -z "$APP_VERSION" ]; then
APP_VERSION="dev"
fi
echo "[0/3] App version: $APP_VERSION"
echo ""
# Function to check if a command exists
command_exists() {
command -v "$1" >/dev/null 2>&1
@@ -98,7 +110,7 @@ if [ -d "frontend/node_modules/.bin" ]; then
chmod +x frontend/node_modules/.bin/* 2>/dev/null || true
fi
wails build -platform linux/amd64 -clean
wails build -platform linux/amd64 -clean -ldflags "-X main.AppVersion=${APP_VERSION}"
if [ ! -f "$EXECUTABLE" ]; then
echo "[ERROR] Build failed. Binary not found at $EXECUTABLE."
+10 -1
View File
@@ -10,6 +10,15 @@ echo wis-free-v3 - Build Script
echo ========================================
echo.
REM App version from scripts\VERSION (single line, e.g. 1.2.3)
set "APP_VERSION=dev"
if exist "%~dp0VERSION" (
for /f "delims=" %%V in ('powershell -NoProfile -Command "(Get-Content -LiteralPath '%~dp0VERSION' -Raw).Trim()" 2^>nul') do set "APP_VERSION=%%V"
)
if "!APP_VERSION!"=="" set "APP_VERSION=dev"
echo [0/2] App version: !APP_VERSION!
echo.
REM Check if wails is installed
where wails >nul 2>&1
if %ERRORLEVEL% NEQ 0 (
@@ -72,7 +81,7 @@ if %ERRORLEVEL% NEQ 0 (
exit /b 1
)
wails build -clean -ldflags="-linkmode internal" -skipbindings
wails build -clean -ldflags "-linkmode internal -X main.AppVersion=!APP_VERSION!" -skipbindings
if %ERRORLEVEL% NEQ 0 (
echo.