forked from X9VoiD/TabletDriverCleanup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ps1
More file actions
17 lines (17 loc) · 668 Bytes
/
build.ps1
File metadata and controls
17 lines (17 loc) · 668 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cargo build --release
if (Test-Path ./build) {
Remove-Item -Path ./build/* -Recurse
} else {
New-Item -Path ./build -ItemType directory > $null
}
if (Test-Path ./dist) {
Remove-Item -Path ./dist/* -Recurse
} else {
New-Item -Path ./dist -ItemType directory > $null
}
Copy-Item -Path ./target/release/tabletdrivercleanup.exe -Destination ./build
Copy-Item -Path ./eng/dump.bat -Destination ./build
Copy-Item -Path ./eng/dry_run.bat -Destination ./build
Copy-Item -Path ./eng/no_prompt_uninstall.bat -Destination ./build
Copy-Item -Path ./eng/internal_config_only.bat -Destination ./build
Compress-Archive -Force ./build/* ./dist/tabletdrivercleanup.zip