-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from SirMotte/Hearth-Edition-Dev
v2.9.22-Torchbearer
- Loading branch information
Showing
4 changed files
with
100 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
:: Works on Windows (10 and 11, at least). Assumes running from Theme_SirMotte_Hearth\build | ||
:: Use GitHub Action 'Create Release' for official release builds but this helps during development. | ||
mkdir out\Theme_SirMotte_Hearth | ||
copy ..\extension.xml out\Theme_SirMotte_Hearth\ | ||
copy ..\SirMotte_footface.png out\Theme_SirMotte_Hearth\ | ||
xcopy ..\common\*.* out\Theme_SirMotte_Hearth\common /h /i /c /k /e /r /y | ||
xcopy ..\graphics\*.* out\Theme_SirMotte_Hearth\graphics /h /i /c /k /e /r /y | ||
xcopy ..\rulesets\*.* out\Theme_SirMotte_Hearth\rulesets /h /i /c /k /e /r /y | ||
xcopy ..\scripts\*.* out\Theme_SirMotte_Hearth\scripts /h /i /c /k /e /r /y | ||
cd out | ||
CALL ..\zip-items Theme_SirMotte_Hearth | ||
rmdir /S /Q Theme_SirMotte_Hearth\ | ||
copy Theme_SirMotte_Hearth.zip Theme_SirMotte_Hearth.ext | ||
cd .. | ||
explorer .\out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@echo off | ||
if "%1"=="" goto end | ||
|
||
setlocal | ||
set TEMPDIR=%TEMP%\ZIP | ||
set FILETOZIP=%1 | ||
set OUTPUTZIP=%2.zip | ||
if "%2"=="" set OUTPUTZIP=%1.zip | ||
|
||
:: preparing VBS script, tune the Sleep value (in milliseconds, give enough time for compression) so that operation finishes before time elapses, else 1K zipfile (bad). | ||
echo Set objArgs = WScript.Arguments > _zipIt.vbs | ||
echo InputFolder = objArgs(0) >> _zipIt.vbs | ||
echo ZipFile = objArgs(1) >> _zipIt.vbs | ||
echo Set fso = WScript.CreateObject("Scripting.FileSystemObject") >> _zipIt.vbs | ||
echo Set objZipFile = fso.CreateTextFile(ZipFile, True) >> _zipIt.vbs | ||
echo objZipFile.Write "PK" ^& Chr(5) ^& Chr(6) ^& String(18, vbNullChar) >> _zipIt.vbs | ||
echo objZipFile.Close >> _zipIt.vbs | ||
echo Set objShell = WScript.CreateObject("Shell.Application") >> _zipIt.vbs | ||
echo Set source = objShell.NameSpace(InputFolder).Items >> _zipIt.vbs | ||
echo Set objZip = objShell.NameSpace(fso.GetAbsolutePathName(ZipFile)) >> _zipIt.vbs | ||
echo if not (objZip is nothing) then >> _zipIt.vbs | ||
echo objZip.CopyHere(source) >> _zipIt.vbs | ||
echo wScript.Sleep 15000 >> _zipIt.vbs | ||
echo end if >> _zipIt.vbs | ||
|
||
@ECHO Zipping, please wait... | ||
mkdir %TEMPDIR% | ||
xcopy /y /s %FILETOZIP% %TEMPDIR% | ||
cscript //NoLogo _zipIt.vbs %TEMPDIR% %OUTPUTZIP% | ||
del _zipIt.vbs | ||
rmdir /s /q %TEMPDIR% | ||
|
||
@ECHO ZIP Completed. | ||
:end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters