Codebase list google-nexus-tools / 647f79fe-9a82-466a-b8f1-fdd9909f7036/upstream/5.4+git20220915.1.8859200 compile.ps1
647f79fe-9a82-466a-b8f1-fdd9909f7036/upstream/5.4+git20220915.1.8859200

Tree @647f79fe-9a82-466a-b8f1-fdd9909f7036/upstream/5.4+git20220915.1.8859200 (Download .tar.gz)

compile.ps1 @647f79fe-9a82-466a-b8f1-fdd9909f7036/upstream/5.4+git20220915.1.8859200raw · 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"