mirror of
https://github.com/UOX3DevTeam/UOX3
synced 2026-08-13 12:27:04 -04:00
27 lines
No EOL
468 B
PowerShell
27 lines
No EOL
468 B
PowerShell
$files = @(
|
|
"imacro_asm.py",
|
|
"imacros.jsasm",
|
|
"jsopcode.tbl"
|
|
)
|
|
|
|
Push-Location $PSScriptRoot
|
|
|
|
# Copy files in
|
|
foreach( $f in $files ) {
|
|
Copy-Item "..\$f" -Destination . -Force
|
|
}
|
|
|
|
docker build -t imacros .
|
|
|
|
docker run -d --rm --name imacros imacros sh -c 'while sleep 3600; do :; done'
|
|
docker cp imacros:/tmp/imacros.c.out .
|
|
docker stop imacros
|
|
|
|
Move-Item imacros.c.out .. -Force
|
|
|
|
# Cleanup files
|
|
foreach( $f in $files ) {
|
|
Remove-Item $f -Force
|
|
}
|
|
|
|
Pop-Location |