mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-06-19 12:58:49 +00:00
Amended export.cmd
And removed an old comment from HomeAssistantApp.mc
This commit is contained in:
16
export.cmd
16
export.cmd
@ -27,6 +27,7 @@ set /p SDK_PATH=<"%USERPROFILE%\AppData\Roaming\Garmin\ConnectIQ\current-sdk.cfg
|
|||||||
set SDK_PATH=%SDK_PATH:~0,-1%\bin
|
set SDK_PATH=%SDK_PATH:~0,-1%\bin
|
||||||
rem Assume we can create and use this directory
|
rem Assume we can create and use this directory
|
||||||
set DEST=export
|
set DEST=export
|
||||||
|
set IQ=HomeAssistant-app.iq
|
||||||
|
|
||||||
rem C:\>java -jar %SDK_PATH%\monkeybrains.jar -h
|
rem C:\>java -jar %SDK_PATH%\monkeybrains.jar -h
|
||||||
rem usage: monkeyc [-a <arg>] [-b <arg>] [--build-stats <arg>] [-c <arg>] [-d <arg>]
|
rem usage: monkeyc [-a <arg>] [-b <arg>] [--build-stats <arg>] [-c <arg>] [-d <arg>]
|
||||||
@ -72,17 +73,20 @@ rem Batch file's directory where the source code is
|
|||||||
set SRC=%~dp0
|
set SRC=%~dp0
|
||||||
rem drop last character '\'
|
rem drop last character '\'
|
||||||
set SRC=%SRC:~0,-1%
|
set SRC=%SRC:~0,-1%
|
||||||
|
set DEST=%SRC%\%DEST%
|
||||||
|
set IQ=%DEST%\%IQ%
|
||||||
|
|
||||||
if not exist %DEST% (
|
if not exist %DEST% (
|
||||||
|
echo Creating %DEST%
|
||||||
md %DEST%
|
md %DEST%
|
||||||
)
|
)
|
||||||
|
|
||||||
if exist %SRC%\export\HomeAssistant*.iq (
|
if exist %IQ% (
|
||||||
del /f /q %SRC%\export\HomeAssistant*.iq
|
echo Deleting old %IQ%
|
||||||
|
del /f /q %IQ%
|
||||||
)
|
)
|
||||||
|
|
||||||
echo.
|
echo Starting export of HomeAssistant Application to %IQ%
|
||||||
echo Starting export of HomeAssistant Application
|
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
"%JAVA_PATH%\java.exe" ^
|
"%JAVA_PATH%\java.exe" ^
|
||||||
@ -91,7 +95,7 @@ echo.
|
|||||||
-Dapple.awt.UIElement=true ^
|
-Dapple.awt.UIElement=true ^
|
||||||
-jar %SDK_PATH%\monkeybrains.jar ^
|
-jar %SDK_PATH%\monkeybrains.jar ^
|
||||||
--api-level 3.1.0 ^
|
--api-level 3.1.0 ^
|
||||||
--output %SRC%\export\HomeAssistant-app.iq ^
|
--output %IQ% ^
|
||||||
--jungles %SRC%\monkey.jungle ^
|
--jungles %SRC%\monkey.jungle ^
|
||||||
--private-key %SRC%\..\developer_key ^
|
--private-key %SRC%\..\developer_key ^
|
||||||
--package-app ^
|
--package-app ^
|
||||||
@ -100,6 +104,6 @@ rem --warn
|
|||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo Finished exporting HomeAssistant
|
echo Finished exporting HomeAssistant
|
||||||
dir %SRC%\export\HomeAssistant*.iq
|
dir %IQ%
|
||||||
|
|
||||||
pause
|
pause
|
||||||
|
@ -432,8 +432,6 @@ class HomeAssistantApp extends Application.AppBase {
|
|||||||
fetchApiStatus();
|
fetchApiStatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Replace this functionality with a more central settings class as proposed in
|
|
||||||
// https://github.com/house-of-abbey/GarminHomeAssistant/pull/17.
|
|
||||||
function onSettingsChanged() as Void {
|
function onSettingsChanged() as Void {
|
||||||
// System.println("HomeAssistantApp onSettingsChanged()");
|
// System.println("HomeAssistantApp onSettingsChanged()");
|
||||||
Settings.update();
|
Settings.update();
|
||||||
|
Reference in New Issue
Block a user