Initial commit: 台銀即期賣出匯率換算工具

This commit is contained in:
Timmy
2026-04-17 12:36:08 +08:00
commit 1091f049ba
16 changed files with 3812 additions and 0 deletions

29
build.bat Normal file
View File

@@ -0,0 +1,29 @@
@echo off
REM 在 Windows 執行此檔即可產生 dist\bot_rates_gui.exe
REM 需求:已安裝 Python 3.8+(勾選 Add to PATH
where python >nul 2>nul
if errorlevel 1 (
echo [X] 找不到 Python請先到 https://www.python.org/downloads/ 安裝並勾選 Add Python to PATH
pause
exit /b 1
)
echo [1/3] 安裝 PyInstaller...
python -m pip install --upgrade pip >nul
python -m pip install pyinstaller || goto :err
echo [2/3] 打包中...
python -m PyInstaller --noconfirm --onefile --windowed ^
--name bot_rates_gui ^
bot_rates_gui.py || goto :err
echo [3/3] 完成執行檔位置dist\bot_rates_gui.exe
echo 將 dist\bot_rates_gui.exe 複製給使用者,雙擊即可執行。
pause
exit /b 0
:err
echo [X] 打包失敗,請檢查上方錯誤訊息。
pause
exit /b 1