mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-22 10:55:15 -04:00
Add deployment script
This commit is contained in:
parent
540ce7f3c3
commit
e59a1ea8b4
2 changed files with 26 additions and 1 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -261,4 +261,7 @@ __pycache__/
|
||||||
*.pyc
|
*.pyc
|
||||||
|
|
||||||
# Ammy auto-generated XAML
|
# Ammy auto-generated XAML
|
||||||
*.g.xaml
|
*.g.xaml
|
||||||
|
|
||||||
|
# Deploy output
|
||||||
|
Deploy/Output/
|
22
Deploy/Prepare.ps1
Normal file
22
Deploy/Prepare.ps1
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
$path = "..\DiscordChatExporter\bin\Release\*"
|
||||||
|
$include = "*.exe", "*.dll", "*.config"
|
||||||
|
$outputDir = "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"
|
Loading…
Add table
Add a link
Reference in a new issue