52 lines
1.2 KiB
Batchfile
52 lines
1.2 KiB
Batchfile
|
|
@echo off
|
||
|
|
chcp 65001 >nul
|
||
|
|
echo Building system notification application...
|
||
|
|
|
||
|
|
:: Set Go path
|
||
|
|
set GO_EXE="C:\Program Files\Go\bin\go.exe"
|
||
|
|
|
||
|
|
:: Create output directories
|
||
|
|
if not exist "dist" mkdir dist
|
||
|
|
if not exist "dist\windows" mkdir dist\windows
|
||
|
|
if not exist "dist\macos" mkdir dist\macos
|
||
|
|
if not exist "dist\linux" mkdir dist\linux
|
||
|
|
|
||
|
|
:: Windows AMD64
|
||
|
|
echo Building Windows AMD64...
|
||
|
|
set GOOS=windows
|
||
|
|
set GOARCH=amd64
|
||
|
|
%GO_EXE% build -o dist/windows/system-toast-windows-amd64.exe main.go
|
||
|
|
|
||
|
|
:: Windows ARM64
|
||
|
|
echo Building Windows ARM64...
|
||
|
|
set GOOS=windows
|
||
|
|
set GOARCH=arm64
|
||
|
|
%GO_EXE% build -o dist/windows/system-toast-windows-arm64.exe main.go
|
||
|
|
|
||
|
|
:: macOS AMD64
|
||
|
|
echo Building macOS AMD64...
|
||
|
|
set GOOS=darwin
|
||
|
|
set GOARCH=amd64
|
||
|
|
%GO_EXE% build -o dist/macos/system-toast-macos-amd64 main.go
|
||
|
|
|
||
|
|
:: macOS ARM64 (Apple Silicon)
|
||
|
|
echo Building macOS ARM64...
|
||
|
|
set GOOS=darwin
|
||
|
|
set GOARCH=arm64
|
||
|
|
%GO_EXE% build -o dist/macos/system-toast-macos-arm64 main.go
|
||
|
|
|
||
|
|
:: Linux AMD64
|
||
|
|
echo Building Linux AMD64...
|
||
|
|
set GOOS=linux
|
||
|
|
set GOARCH=amd64
|
||
|
|
%GO_EXE% build -o dist/linux/system-toast-linux-amd64 main.go
|
||
|
|
|
||
|
|
:: Linux ARM64
|
||
|
|
echo Building Linux ARM64...
|
||
|
|
set GOOS=linux
|
||
|
|
set GOARCH=arm64
|
||
|
|
%GO_EXE% build -o dist/linux/system-toast-linux-arm64 main.go
|
||
|
|
|
||
|
|
echo Build completed!
|
||
|
|
echo Output directory: dist\
|
||
|
|
pause
|