-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.ps1
73 lines (57 loc) · 2.19 KB
/
build.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# build
echo building...
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest "https://github.com/Hibbiki/chromium-win64/releases/download/v79.0.3945.130-r706915/chrome.sync.7z" -OutFile "chrome.7z"
7z x chrome.7z -aoa
rm chrome.7z
# Invoke-WebRequest "https://raw.githubusercontent.com/avaer/swsdk/master/steamworks_sdk_148.zip" -OutFile "steamworks_sdk_148.zip"
# 7z x steamworks_sdk_148.zip -aoa
# rm steamworks_sdk_148.zip
Invoke-WebRequest 'https://nodejs.org/dist/v13.10.1/node-v13.10.1-win-x64.zip' -OutFile "node.zip"
7z x node.zip -aoa
rm node.zip
mv node-v13.10.1-win-x64 node
rm -Recurse -Force node_modules
node --version
& 'node/node.exe' node/node_modules/npm/bin/npm-cli.js
& 'node/node.exe' node/node_modules/npm/bin/npm-cli.js install
rm -Recurse -Force build
& 'node/node.exe' ./node_modules/node-gyp/bin/node-gyp.js configure
& 'node/node.exe' ./node_modules/node-gyp/bin/node-gyp.js build
ls
cd src
mkdir -Force build
cd build
cmake -G "Visual Studio 16 2019" -A x64 ..
msbuild -m Aardvark.sln
msbuild /p:Configuration=Release -m Aardvark.sln
cd ../..
ls
# cp -Recurse Chrome-bin src\build\avrenderer\Debug\
# cp -Recurse extension src\build\avrenderer\Debug\
# cp -Recurse data src\build\avrenderer\Debug\
# cp -Recurse userdata src\build\avrenderer\Debug\Chrome-bin\
# cp -Recurse bin\openvr_api.dll src\build\avrenderer\Debug\
# cp steam_appid.txt src\build\avrenderer\Debug\
# cp -Recurse Chrome-bin src\build\avrenderer\Release\
# cp -Recurse extension src\build\avrenderer\Release\
# cp -Recurse data src\build\avrenderer\Release\
# cp -Recurse userdata src\build\avrenderer\Release\Chrome-bin\
# cp -Recurse bin\openvr_api.dll src\build\avrenderer\Release\
# cp steam_appid.txt src\build\avrenderer\Release\
cp -Recurse bin\openvr_api.dll build/Release/
mkdir -Force MetaAssembly
mv ./node/ ./MetaAssembly/
mv ./node_modules/ ./MetaAssembly/
mv ./build/ ./MetaAssembly/
mv ./index.js ./MetaAssembly/
mv ./Chrome-bin/ ./MetaAssembly/
mv ./extension/ ./MetaAssembly/
mv ./data/ ./MetaAssembly/
mv ./MetaAssembly.cmd ./MetaAssembly/
echo zipping artifact...
# 7z a avrenderer.zip -r .\src\build\avrenderer\Release\
7z a MetaAssembly.zip -r .\MetaAssembly\
echo done zipping artifact
ls
echo done