Codebase list google-nexus-tools / 4bebb7b2-cb0e-4a1c-93dc-a4bba6e563b8/upstream/5.4 compile.ps1
4bebb7b2-cb0e-4a1c-93dc-a4bba6e563b8/upstream/5.4

Tree @4bebb7b2-cb0e-4a1c-93dc-a4bba6e563b8/upstream/5.4 (Download .tar.gz)

compile.ps1 @4bebb7b2-cb0e-4a1c-93dc-a4bba6e563b8/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"