diff --git a/docs/export-format.md b/docs/export-format.md index cac0533..32da524 100644 --- a/docs/export-format.md +++ b/docs/export-format.md @@ -15,7 +15,7 @@ decoder-only offsets. "capture_source": "npcap", "exporter": { "name": "nte-history-exporter", - "version": "0.1.8" + "version": "0.1.9" }, "banner": { "id": "Lottery_Permanent", diff --git a/docs/packaging.md b/docs/packaging.md index b3baac3..1819a6b 100644 --- a/docs/packaging.md +++ b/docs/packaging.md @@ -5,7 +5,7 @@ Build the Windows console executable with: ```powershell -.\tools\build-windows.ps1 +.\tools\build-windows.cmd ``` The output is: diff --git a/mappings/arcs.json b/mappings/arcs.json index a13efae..c31ea08 100644 --- a/mappings/arcs.json +++ b/mappings/arcs.json @@ -44,5 +44,6 @@ "fork_Whale": {"name": "Song of the Whale", "rank": "S"}, "fork_worldrain": {"name": "The Rain That Shook the World", "rank": "S"}, "fork_Wushoutieyu": {"name": "Raging Flames", "rank": "S"}, - "fork_GoldWool": {"name": "What's Desired", "rank": "S"} + "fork_GoldWool": {"name": "What's Desired", "rank": "S"}, + "fork_LunarPhase": {"name": "Blushing Mirage", "rank": "S"} } diff --git a/mappings/characters.json b/mappings/characters.json index ddf8f9a..842b603 100644 --- a/mappings/characters.json +++ b/mappings/characters.json @@ -18,5 +18,6 @@ "1056": {"name": "Lacrimosa", "rank": "S"}, "1070": {"name": "Aurelia", "rank": "A"}, "1071": {"name": "Chaos", "rank": "S"}, - "1073": {"name": "Chiz", "rank": "S"} + "1073": {"name": "Chiz", "rank": "S"}, + "1076": {"name": "Shinku", "rank": "S"} } diff --git a/mappings/items.json b/mappings/items.json index 6109d84..44cee60 100644 --- a/mappings/items.json +++ b/mappings/items.json @@ -3,16 +3,24 @@ "Dice_ticket_01": {"type": "item", "name": "Warp Piece", "rank": "S"}, "Dice_ticket_02": {"type": "item", "name": "Lost Piece", "rank": "A"}, "Dicelimite": {"type": "item", "name": "Solid Dice", "rank": "S"}, - "Fashion_Glide_1010": {"type": "cosmetic", "name": "Underboss-of-the-Underboss", "rank": "A"}, - "Fashion_vehicle_1010_V008": {"type": "cosmetic", "name": "Tiger Incoming! - Livery", "rank": "S"}, - "Fashion_1010_2": {"type": "cosmetic", "name": "Phoenix Kick", "rank": "S"}, - "Fashion_Glide_1052": {"type": "cosmetic", "name": "Orchid Breeze", "rank": "A"}, - "Fashion_vehicle_1052_V024": {"type": "cosmetic", "name": "Autumn Haze - Livery", "rank": "S"}, - "Fashion_1052_1": {"type": "cosmetic", "name": "Priceless Orchid", "rank": "S"}, - "Fashion_Glide_1004": {"type": "cosmetic", "name": "Tomato Duo", "rank": "A"}, - "Fashion_vehicle_1004_V021": {"type": "cosmetic", "name": "Tomato Cruise - Livery", "rank": "S"}, - "Fashion_1004_1": {"type": "cosmetic", "name": "Gilded Rhapsody", "rank": "S"}, - "Fashion_Glide_1071": {"type": "cosmetic", "name": "Skyrider", "rank": "A"}, - "Fashion_vehicle_1071_V010": {"type": "cosmetic", "name": "Novis ST-X 950 Livery", "rank": "S"}, - "Fashion_1071_1": {"type": "cosmetic", "name": "Clear Skies", "rank": "S"} + + "Fashion_Glide_1010": {"type": "cosmetic", "name": "Glider - Underboss-of-the-Underboss", "rank": "A"}, + "Fashion_vehicle_1010_V008": {"type": "cosmetic", "name": "Mod Parts - Tiger Incoming! - Livery", "rank": "S"}, + "Fashion_1010_2": {"type": "cosmetic", "name": "Character Skin - Phoenix Kick", "rank": "S"}, + + "Fashion_Glide_1052": {"type": "cosmetic", "name": "Glider - Orchid Breeze", "rank": "A"}, + "Fashion_vehicle_1052_V024": {"type": "cosmetic", "name": "Mod Parts - Autumn Haze - Livery", "rank": "S"}, + "Fashion_1052_1": {"type": "cosmetic", "name": "Character Skin - Priceless Orchid", "rank": "S"}, + + "Fashion_Glide_1004": {"type": "cosmetic", "name": "Glider - Tomato Duo", "rank": "A"}, + "Fashion_vehicle_1004_V021": {"type": "cosmetic", "name": "Mod Parts - Tomato Cruise - Livery", "rank": "S"}, + "Fashion_1004_1": {"type": "cosmetic", "name": "Character Skin - Gilded Rhapsody", "rank": "S"}, + + "Fashion_Glide_1071": {"type": "cosmetic", "name": "Glider - Skyrider", "rank": "A"}, + "Fashion_vehicle_1071_V010": {"type": "cosmetic", "name": "Mod Parts - Novis ST-X 950 - Livery", "rank": "S"}, + "Fashion_1071_1": {"type": "cosmetic", "name": "Character Skin - Clear Skies", "rank": "S"}, + + "Fashion_Glide_1076": {"type": "cosmetic", "name": "Glider - Overcast Canopy", "rank": "A"}, + "Fashion_vehicle_1076_V024": {"type": "cosmetic", "name": "Mod Parts - Hidden Dragon - Livery", "rank": "S"}, + "Fashion_1076_1": {"type": "cosmetic", "name": "Character Skin - Student of Terrasea", "rank": "S"} } diff --git a/pyproject.toml b/pyproject.toml index c98875c..513a7fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nte-history-exporter" -version = "0.1.8" +version = "0.1.9" description = "Cross-platform Neverness to Everness pull-history exporter." requires-python = ">=3.10" dependencies = [] diff --git a/src/nte_history_exporter/__init__.py b/src/nte_history_exporter/__init__.py index 9cb17e7..c11f861 100644 --- a/src/nte_history_exporter/__init__.py +++ b/src/nte_history_exporter/__init__.py @@ -1 +1 @@ -__version__ = "0.1.8" +__version__ = "0.1.9" diff --git a/src/nte_history_exporter/constants.py b/src/nte_history_exporter/constants.py index c5c35b6..d99132b 100644 --- a/src/nte_history_exporter/constants.py +++ b/src/nte_history_exporter/constants.py @@ -11,7 +11,7 @@ LIMITED_CHARACTER_BANNER_NAME = "Limited Character Board" ARC_BANNER_ID = "Arc_MiracleBox" ARC_BANNER_NAME = "Arc Miracle Box" EXPORTER_NAME = "nte-history-exporter" -EXPORTER_VERSION = "0.1.8" +EXPORTER_VERSION = "0.1.9" HISTORY_REQUEST_BANNER = 4220 HISTORY_REQUEST_LENGTH = 45 diff --git a/tools/build-windows.cmd b/tools/build-windows.cmd new file mode 100644 index 0000000..ffb0eb2 --- /dev/null +++ b/tools/build-windows.cmd @@ -0,0 +1,35 @@ +@echo off +setlocal + +cd /d "%~dp0\.." + +set "PYTHON=.venv\Scripts\python.exe" +if not exist "%PYTHON%" ( + python -m venv .venv + if errorlevel 1 exit /b %errorlevel% +) + +"%PYTHON%" -m pip install --upgrade pip +if errorlevel 1 exit /b %errorlevel% + +"%PYTHON%" -m pip install -e ".[build]" +if errorlevel 1 exit /b %errorlevel% + +"%PYTHON%" -m PyInstaller --clean --noconfirm "packaging\NTE History Exporter.spec" +if errorlevel 1 ( + echo PyInstaller failed. + exit /b %errorlevel% +) + +set "EXE=%CD%\dist\nte-history-exporter.exe" +if not exist "%EXE%" ( + echo Expected build output was not created: %EXE% + exit /b 1 +) + +echo Built %EXE% +"%EXE%" --help +if errorlevel 1 ( + echo Built executable smoke test failed. + exit /b %errorlevel% +) diff --git a/tools/build-windows.ps1 b/tools/build-windows.ps1 deleted file mode 100644 index 44e6225..0000000 --- a/tools/build-windows.ps1 +++ /dev/null @@ -1,27 +0,0 @@ -$ErrorActionPreference = 'Stop' - -Set-Location (Split-Path -Parent $PSScriptRoot) - -$python = Join-Path $PWD '.venv\Scripts\python.exe' -if (-not (Test-Path $python)) { - python -m venv .venv -} - -& $python -m pip install --upgrade pip -& $python -m pip install -e '.[build]' - -& $python -m PyInstaller --clean --noconfirm 'packaging\NTE History Exporter.spec' -if ($LASTEXITCODE -ne 0) { - throw "PyInstaller failed with exit code $LASTEXITCODE" -} - -$exe = Join-Path $PWD 'dist\nte-history-exporter.exe' -if (-not (Test-Path $exe)) { - throw "Expected build output was not created: $exe" -} - -Write-Host "Built $exe" -& $exe --help -if ($LASTEXITCODE -ne 0) { - throw "Built executable smoke test failed with exit code $LASTEXITCODE" -}