Maximize Workplace within its frame and add versioned Design Studio
This commit is contained in:
10
hmi-scripts/build-workplace-launcher.ps1
Normal file
10
hmi-scripts/build-workplace-launcher.ps1
Normal file
@@ -0,0 +1,10 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$Root = Split-Path -Parent $PSScriptRoot
|
||||
$Temp = Join-Path ([System.IO.Path]::GetTempPath()) ([guid]::NewGuid().ToString())
|
||||
New-Item -ItemType Directory -Path $Temp | Out-Null
|
||||
try {
|
||||
& javac --release 11 -d $Temp (Join-Path $Root 'hmi-docs/cheerpj/WorkplaceLauncher.java')
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Workplace launcher compilation failed' }
|
||||
& jar --create --file (Join-Path $Root 'hmi-frontend/public/cheerpj/workplace-launcher.jar') -C $Temp 'com/widgetworkbench/cheerpj/WorkplaceLauncher.class'
|
||||
if ($LASTEXITCODE -ne 0) { throw 'Workplace launcher packaging failed' }
|
||||
} finally { Remove-Item -LiteralPath $Temp -Recurse -Force }
|
||||
7
hmi-scripts/build-workplace-launcher.sh
Normal file
7
hmi-scripts/build-workplace-launcher.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
TEMP="$(mktemp -d)"
|
||||
trap 'rm -rf "$TEMP"' EXIT
|
||||
javac --release 11 -d "$TEMP" "$ROOT/hmi-docs/cheerpj/WorkplaceLauncher.java"
|
||||
jar --create --file "$ROOT/hmi-frontend/public/cheerpj/workplace-launcher.jar" -C "$TEMP" com/widgetworkbench/cheerpj/WorkplaceLauncher.class
|
||||
Reference in New Issue
Block a user