Fix data loss risk, reminder bugs; theme, credits, tests
- Store tasks in %APPDATA% (single-file extract dir lost data on update), atomic serialized saves, corrupt-file backup, migration of old tasks.json - Reminders without description never showed (empty balloon text threw) - Catch up missed reminders on start; monthly recurrence no longer drifts - Task dialog: date pick kept 00:00, cancel leaked recurrence changes - CSV import understands quoted fields written by export - Confirm before deleting; name folders on create; tasks sorted by date - Single instance, autostart starts hidden in tray, tray icon disposed - Theme helper for all dialogs, MDL2/Path icons instead of emojis, fixed folder selection/badge, localized counts and messages - Credits (c) Michael Media + Discord link, exe Company/Copyright - Locales embedded; xUnit tests (24); README, CLAUDE.md, sprite-generator Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
31
sprite-generator/gen.cmd
Normal file
31
sprite-generator/gen.cmd
Normal file
@@ -0,0 +1,31 @@
|
||||
@echo off
|
||||
rem Starts a tool from D:\Oculusquest\Projekt\_Tools\ComfyGen for this project.
|
||||
rem gen list the tools
|
||||
rem gen generate <name> image from prompts.py
|
||||
rem gen adopt <name> cut out + copy into ASSETS_DIR\Sprites
|
||||
rem gen generate_audio <name> music / sfx from the audio list
|
||||
set TOOLS=D:\Oculusquest\Projekt\_Tools\ComfyGen
|
||||
rem shift below also moves %0, so remember this folder first
|
||||
set HERE=%~dp0
|
||||
set SCRIPT=%~1
|
||||
if "%SCRIPT%"=="" (
|
||||
echo Tools:& dir /b "%TOOLS%\*.py" | findstr /v /b "_"
|
||||
exit /b 0
|
||||
)
|
||||
shift
|
||||
set PY=py -3.12
|
||||
if /i "%SCRIPT%"=="generate_voice" set PY="%TOOLS%\.venv-tts\Scripts\python.exe"
|
||||
if /i "%SCRIPT%"=="make_voice_refs" set PY="%TOOLS%\.venv-tts\Scripts\python.exe"
|
||||
set PYTHONIOENCODING=utf-8
|
||||
pushd "%HERE%"
|
||||
set ARGS=
|
||||
:collect
|
||||
if "%~1"=="" goto run
|
||||
set ARGS=%ARGS% %1
|
||||
shift
|
||||
goto collect
|
||||
:run
|
||||
%PY% "%TOOLS%\%SCRIPT%.py"%ARGS%
|
||||
set RC=%ERRORLEVEL%
|
||||
popd
|
||||
exit /b %RC%
|
||||
Reference in New Issue
Block a user