Codebase list google-nexus-tools / run/69242ff6-88f0-48b6-80e0-f3b467dc7eaf/upstream compile.ps1
run/69242ff6-88f0-48b6-80e0-f3b467dc7eaf/upstream

Tree @run/69242ff6-88f0-48b6-80e0-f3b467dc7eaf/upstream (Download .tar.gz)

compile.ps1 @run/69242ff6-88f0-48b6-80e0-f3b467dc7eaf/upstreamraw · history · blame

$FileName = "nexustools-windows-x64"

# Make the new directory
$dirCheck = Test-Path dist
if ($dirCheck) {
    # Do nothing
} else {
    New-Item -Name "dist" -ItemType Directory
}

dart compile exe "./bin/main.dart" -o "./dist/nexustools.exe"
Compress-Archive -Path "./dist/nexustools.exe" -DestinationPath "./dist/$FileName.zip" -Force
del "./dist/nexustools.exe"