mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-23 19:26:57 -04:00
Update deployment script
This commit is contained in:
parent
e59a1ea8b4
commit
5ecbfd50b8
1 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
$path = "..\DiscordChatExporter\bin\Release\*"
|
$path = "$PSScriptRoot\..\DiscordChatExporter\bin\Release\*"
|
||||||
$include = "*.exe", "*.dll", "*.config"
|
$include = "*.exe", "*.dll", "*.config"
|
||||||
$outputDir = "Output"
|
$outputDir = "$PSScriptRoot\Output"
|
||||||
$outputFile = "DiscordChatExporter.zip"
|
$outputFile = "DiscordChatExporter.zip"
|
||||||
|
|
||||||
# Create output directory
|
# Create output directory
|
||||||
|
@ -10,13 +10,13 @@ if (-Not (Test-Path $outputDir))
|
||||||
}
|
}
|
||||||
|
|
||||||
# Delete output if already exists
|
# Delete output if already exists
|
||||||
if (Test-Path("$outputDir/$outputFile"))
|
if (Test-Path("$outputDir\$outputFile"))
|
||||||
{
|
{
|
||||||
Remove-Item -Path "$outputDir/$outputFile"
|
Remove-Item -Path "$outputDir\$outputFile"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Get files
|
# Get files
|
||||||
$files = Get-ChildItem -Path $path -Include $include
|
$files = Get-ChildItem -Path $path -Include $include
|
||||||
|
|
||||||
# Pack into archive
|
# Pack into archive
|
||||||
$files | Compress-Archive -DestinationPath "$outputDir/$outputFile"
|
$files | Compress-Archive -DestinationPath "$outputDir\$outputFile"
|
Loading…
Add table
Add a link
Reference in a new issue