Codebase list google-nexus-tools / run/6d527e1b-6c4e-407e-a804-464049c08503/upstream compile.ps1
run/6d527e1b-6c4e-407e-a804-464049c08503/upstream

Tree @run/6d527e1b-6c4e-407e-a804-464049c08503/upstream (Download .tar.gz)

compile.ps1 @run/6d527e1b-6c4e-407e-a804-464049c08503/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"