diff --git a/.gitignore b/.gitignore index f21df30..a788580 100644 --- a/.gitignore +++ b/.gitignore @@ -261,7 +261,4 @@ __pycache__/ *.pyc # Ammy auto-generated XAML -*.g.xaml - -# Deploy output -Deploy/Output/ \ No newline at end of file +*.g.xaml \ No newline at end of file diff --git a/Deploy/Prepare.ps1 b/Deploy/Prepare.ps1 index 236b68b..1a1fb61 100644 --- a/Deploy/Prepare.ps1 +++ b/Deploy/Prepare.ps1 @@ -1,22 +1,3 @@ -$path = "$PSScriptRoot\..\DiscordChatExporter\bin\Release\*" -$include = "*.exe", "*.dll", "*.config" -$outputDir = "$PSScriptRoot\Output" -$outputFile = "DiscordChatExporter.zip" - -# Create output directory -if (-Not (Test-Path $outputDir)) -{ - New-Item $outputDir -ItemType Directory -} - -# Delete output if already exists -if (Test-Path("$outputDir\$outputFile")) -{ - Remove-Item -Path "$outputDir\$outputFile" -} - -# Get files -$files = Get-ChildItem -Path $path -Include $include - -# Pack into archive -$files | Compress-Archive -DestinationPath "$outputDir\$outputFile" \ No newline at end of file +New-Item "$PSScriptRoot\bin" -ItemType Directory -Force +$files = Get-ChildItem -Path "$PSScriptRoot\..\DiscordChatExporter\bin\Release\*" -Include "*.exe", "*.dll", "*.config" +$files | Compress-Archive -DestinationPath "$PSScriptRoot\bin\DiscordChatExporter.zip" -Force \ No newline at end of file