-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.bat
More file actions
15 lines (15 loc) · 1.25 KB
/
package.bat
File metadata and controls
15 lines (15 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
call "%AIRSDK%\bin\compc.bat" +configname=air -source-path AS3/src -include-sources AS3/src -swf-version=11 -output ANEBytecodeEditor.swc -debug=false
call "%AIRSDK%\bin\aasdoc.bat" -doc-sources AS3/src -compiler.source-path AS3/src -swf-version=11 -output rawasdoc -debug=false -keep-xml=true -skip-xsl=true
copy /Y Native\BytecodeEditor\Release\BytecodeEditor.dll ANEBytecodeEditor.dll
move /Y ANEBytecodeEditor.swc ANEBytecodeEditor.zip
xcopy /I /Y rawasdoc\tempdita\* docs
del docs\ASDoc_Config.xml docs\overviews.xml
powershell -command "Expand-Archive -Force ANEBytecodeEditor.zip ."
move /Y ANEBytecodeEditor.zip ANEBytecodeEditor.swc
rem The next line won't work because it uses backslashes in the ZIP path rather than forward slashes. Fuck Windows
rem powershell -command "Compress-Archive -Update -DestinationPath ANEBytecodeEditor.zip -Path docs"
call "%AIRSDK%\bin\adt.bat" -package -target ane ANEBytecodeEditor.ane descriptor.xml -platform Windows-x86 library.swf ANEBytecodeEditor.dll -swc ANEBytecodeEditor.swc
rem I'll just use 7-zip to add ASDoc if it's installed, otherwise just do nothing
for /f "tokens=2,*" %%i in ('reg query HKLM\SOFTWARE\7-Zip /v Path') do ( "%%~j"\7z.exe a ANEBytecodeEditor.swc docs/ )
del /Q library.swf catalog.xml
rmdir /S /Q rawasdoc