Skip to content
Permalink
Browse files

SoraUnitySdk.zip を作成するスクリプトを用意

  • Loading branch information
melpon committed Nov 3, 2019
1 parent 77ce389 commit d73e3d778a686cf37daa9e25e377ab3be0716a73
Showing with 22 additions and 1 deletion.
  1. +3 −1 .gitignore
  2. +2 −0 cmake.ps1
  3. +1 −0 install_tools.ps1
  4. +2 −0 package.bat
  5. +14 −0 package.ps1
@@ -1,3 +1,5 @@
/_build
/_install
/build
/build
/SoraUnitySdk/
/SoraUnitySdk.zip
@@ -1,3 +1,5 @@
$ErrorActionPreference = 'Stop'

$INSTALL_DIR = (Join-Path (Resolve-Path ".").Path "_install").Replace("\", "/")
$MODULE_PATH = (Join-Path (Resolve-Path ".").Path "cmake").Replace("\", "/")

@@ -1,3 +1,4 @@
$ErrorActionPreference = 'Stop'

$BUILD_DIR = Join-Path (Resolve-Path ".").Path "_build"
$INSTALL_DIR = Join-Path (Resolve-Path ".").Path "_install"
@@ -0,0 +1,2 @@
powershell -NoProfile -ExecutionPolicy Unrestricted .\package.ps1
pause
@@ -0,0 +1,14 @@
$ErrorActionPreference = 'Stop'

. .\cmake.ps1
if (Test-Path "SoraUnitySdk.zip") {
Remove-Item SoraUnitySdk.zip
}
if (Test-Path "SoraUnitySdk\") {
Remove-Item "SoraUnitySdk\" -Force -Recurse
}
New-Item "SoraUnitySdk\Plugins\SoraUnitySdk\windows\x86_64" -ItemType Directory -ErrorAction 0
New-Item "SoraUnitySdk\SoraUnitySdk\" -ItemType Directory -ErrorAction 0
Copy-Item "Sora\Sora.cs" "SoraUnitySdk\SoraUnitySdk\"
Copy-Item ".\build\Release\SoraUnitySdk.dll" "SoraUnitySdk\Plugins\SoraUnitySdk\windows\x86_64"
Compress-Archive -Path ".\SoraUnitySdk" -DestinationPath SoraUnitySdk.zip

0 comments on commit d73e3d7

Please sign in to comment.
You can’t perform that action at this time.