Codebase list google-nexus-tools / run/41dd6829-71b8-4602-a82d-fbda012ba83c/main compile.ps1
run/41dd6829-71b8-4602-a82d-fbda012ba83c/main

Tree @run/41dd6829-71b8-4602-a82d-fbda012ba83c/main (Download .tar.gz)

compile.ps1 @run/41dd6829-71b8-4602-a82d-fbda012ba83c/mainraw · 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"