File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ set "STAGE_ROOT=%REPO_ROOT%\mod"
1010set " MOD_ROOT = %STAGE_ROOT% \%MOD_NAME% "
1111set " DIST_ROOT = %REPO_ROOT% \dist"
1212set " ZIP_PATH = %DIST_ROOT% \%MOD_NAME% .zip"
13+ set " PACKAGE_ROOT = %DIST_ROOT% \package"
14+ set " PACKAGE_MOD_ROOT = %PACKAGE_ROOT% \%MOD_NAME% "
1315
1416if not exist " %PROJECT_DIR% kc-accessibility.csproj" (
1517 echo Project file not found under " %PROJECT_DIR% "
@@ -21,9 +23,18 @@ if errorlevel 1 exit /b 1
2123
2224if not exist " %DIST_ROOT% " mkdir " %DIST_ROOT% "
2325if exist " %ZIP_PATH% " del /F /Q " %ZIP_PATH% "
26+ if exist " %PACKAGE_ROOT% " rmdir /S /Q " %PACKAGE_ROOT% "
27+ mkdir " %PACKAGE_MOD_ROOT% "
28+ if errorlevel 1 exit /b 1
29+
30+ for %%F in (" %MOD_ROOT% \*" ) do (
31+ if /I not " %%~aF " == " d" copy /Y " %%~fF " " %PACKAGE_MOD_ROOT% \%%~nxF " > nul
32+ )
2433
25- powershell -NoProfile -ExecutionPolicy Bypass -Command " Compress-Archive -Path '%MOD_ROOT% \* ' -DestinationPath '%ZIP_PATH% ' -Force"
34+ powershell -NoProfile -ExecutionPolicy Bypass -Command " Push-Location ' %PACKAGE_ROOT% '; Compress-Archive -Path '%MOD_NAME% ' -DestinationPath '%ZIP_PATH% ' -Force; Pop-Location "
2635if errorlevel 1 exit /b 1
2736
37+ rmdir /S /Q " %PACKAGE_ROOT% "
38+
2839echo Packaged mod zip at " %ZIP_PATH% "
2940exit /b 0
Original file line number Diff line number Diff line change 33public class ScreenReaderLoadMod
44{
55 private const string InitialAnnouncement = "Kingdoms and Castles loaded." ;
6- private const string BuildStamp = "0.2.2-dev6 " ;
6+ private const string BuildStamp = "0.2.2" ;
77
88 private static KCModHelper helper ;
99
Original file line number Diff line number Diff line change 22 "Name" : " kc-accessibility" ,
33 "Author" : " chris" ,
44 "Description" : " Adds screen-reader accessibility support for menus and gameplay." ,
5- "ModVersion" : " 0.2.1 "
5+ "ModVersion" : " 0.2.2 "
66}
You can’t perform that action at this time.
0 commit comments