Upgraded original RothenburgAR to Unity version 2017.4.5f1 (and upgrading from standalone vuforia to the version integrated in unity)
This commit is contained in:
36
Deploy/deploy.cmd
Normal file
36
Deploy/deploy.cmd
Normal file
@@ -0,0 +1,36 @@
|
||||
@echo off
|
||||
@title RothenburgAR Deploy
|
||||
|
||||
rem Variablendefinitionen
|
||||
SET ApkPath=..\Output\rc3.apk
|
||||
SET DataSourcePath=%appdata%\..\LocalLow\FHWS\RothenburgAR\data\
|
||||
SET DataTargetPath=/storage/emulated/0/Android/data/de.fhws.rothenburgar/files/data/
|
||||
|
||||
rem Dieser Pfad muss unbedingt angepasst werden!
|
||||
SET adbPath=C:\Program Files\Unity\Editor\Android\platform-tools\adb.exe
|
||||
SET ClearBeforeCopy=1
|
||||
|
||||
|
||||
rem Hier beginnt das Script
|
||||
echo Installing "%ApkPath%" to connected devices.
|
||||
rem "%adbPath%" install -r "%ApkPath%"
|
||||
|
||||
if "%ClearBeforeCopy%"=="1" (
|
||||
echo Clearing data
|
||||
"%adbPath%" shell rm -r %DataTargetPath%
|
||||
)
|
||||
|
||||
CALL :CopyData colors.xml
|
||||
CALL :CopyData localization.xml
|
||||
CALL :CopyData localization
|
||||
CALL :CopyData exhibition
|
||||
CALL :CopyData poi
|
||||
|
||||
echo Done!
|
||||
|
||||
EXIT /B %ERRORLEVEL%
|
||||
|
||||
:CopyData
|
||||
rem echo Copying data/%1 to connected devices.
|
||||
"%adbPath%" push %DataSourcePath%\%1 %DataTargetPath%/%1
|
||||
EXIT /B 0
|
||||
48
Deploy/deploy.multiple.cmd
Normal file
48
Deploy/deploy.multiple.cmd
Normal file
@@ -0,0 +1,48 @@
|
||||
@echo off
|
||||
@title RothenburgAR Deploy
|
||||
|
||||
rem DO NOT FORGET TO MODIFY THIS VARIABLES
|
||||
SET adbPath=C:\Program Files\Unity\Editor\Android\platform-tools\adb.exe
|
||||
SET ApkPath=..\Output\rc3.apk
|
||||
|
||||
SET DataSourcePath=%appdata%\..\LocalLow\FHWS\RothenburgAR\data\
|
||||
SET DataTargetPath=/storage/emulated/0/Android/data/de.fhws.rothenburgar/files/data/
|
||||
|
||||
SET ClearBeforeCopy=1
|
||||
|
||||
rem Scipt start
|
||||
FOR /F "tokens=1,2 skip=1" %%R IN ('"%adbPath%" devices') DO (
|
||||
echo ### DEVICE %%R START
|
||||
CALL :HandleDevice %%R
|
||||
echo ### DEVICE %%R DONE
|
||||
)
|
||||
|
||||
EXIT /B %ERRORLEVEL%
|
||||
|
||||
rem #################################
|
||||
rem Here I declare some Methods
|
||||
|
||||
rem Copies data/%2 to device %1
|
||||
:CopyData
|
||||
echo Copying data/%2 to device %1
|
||||
"%adbPath%" -s %1 push %DataSourcePath%\%2 %DataTargetPath%/%2
|
||||
EXIT /B 0
|
||||
|
||||
|
||||
rem Handles a device
|
||||
rem requires %1 to be the id of the device
|
||||
:HandleDevice
|
||||
echo Installing "%ApkPath%" to device %1.
|
||||
"%adbPath%" -s %1 install -r "%ApkPath%"
|
||||
|
||||
if "%ClearBeforeCopy%"=="1" (
|
||||
echo Clearing data on device %1.
|
||||
"%adbPath%" -s %1 shell rm -r %DataTargetPath%
|
||||
)
|
||||
|
||||
CALL :CopyData %1 colors.xml
|
||||
CALL :CopyData %1 localization.xml
|
||||
CALL :CopyData %1 localization
|
||||
CALL :CopyData %1 exhibition
|
||||
CALL :CopyData %1 poi
|
||||
EXIT /B 0
|
||||
Reference in New Issue
Block a user