Codebase list google-nexus-tools / 96279a6f-82ed-427c-a11f-ac27ea80d2dd/upstream/5.4 compile.ps1
96279a6f-82ed-427c-a11f-ac27ea80d2dd/upstream/5.4

Tree @96279a6f-82ed-427c-a11f-ac27ea80d2dd/upstream/5.4 (Download .tar.gz)

compile.ps1 @96279a6f-82ed-427c-a11f-ac27ea80d2dd/upstream/5.4raw · 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"