Skip to content

Instantly share code, notes, and snippets.

@Jacobboogiebear
Created June 16, 2021 08:34
Show Gist options
  • Save Jacobboogiebear/bd3a3f285eb89e6433124f55ae1c41be to your computer and use it in GitHub Desktop.
Save Jacobboogiebear/bd3a3f285eb89e6433124f55ae1c41be to your computer and use it in GitHub Desktop.
Install/Compile Armor Paint
Invoke-WebRequest -Uri "https://download1585.mediafire.com/rqiwwwhracmg/5ol3qzfdzlqdzal/7za.exe" -OutFile "./7za.exe"
Invoke-WebRequest -Uri "https://download854.mediafire.com/fvev56jl2zjg/gkrftr0bccaunbu/7za.dll" -OutFile "./7za.dll"
Invoke-WebRequest -Uri "https://download1513.mediafire.com/plbxkh7yk7rg/lexm6rk01qdqora/7zxa.dll" -OutFile "./7zxa.dll"
Invoke-WebRequest -Uri "https://download2264.mediafire.com/9xaggnko4y4g/cf7c87tovc8s89u/temp.7z" -OutFile "./temp.7z"
$env:PATH += ';' + $pwd.Path
7za x ./temp.7z -y
Set-Location ./temp/
$process = start-process vs_community.exe -ArgumentList "--path install=$($pwd.Path)/vs --add=Microsoft.VisualStudio.Workload.NativeDesktop --wait --quiet --includeRecommended --includeOptional" -PassThru -Wait
$process.WaitForExit();
Set-Location ./vs/VC/Auxiliary/Build
.\vcvarsx86_amd64.bat
Set-Location ../../../MSBuild/Current/Bin
$env:PATH += ';' + $pwd.Path
Set-Location ../../../../Node
$env:PATH += ';' + $pwd.Path
Set-Location ../Git
$env:PATH += ';' + $pwd.Path
Set-Location ../../
git clone https://github.com/armory3d/armorpaint --recurse-submodules
Set-Location ./armorpaint
node armorcore/make -g direct3d11
Set-Location ./armorcore
Set-Location ./v8/libraries/win32/release
7za x ./v8_monolith.7z
Set-Location ../../../../
git apply patch/window_handling.diff --directory=Kinc
node Kinc/make -g direct3d11
Set-Location ./build
MSBuild Krom.sln /property:Configuration=Release
Set-Location ./x64/Release
Copy-item -Force -Recurse -Verbose "$($pwd.PATH)/*" -Destination ../../../../build/krom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment