mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-23 19:26:57 -04:00
21 lines
No EOL
766 B
PowerShell
21 lines
No EOL
766 B
PowerShell
New-Item "$PSScriptRoot\Portable\bin" -ItemType Directory -Force
|
|
|
|
# --- GUI ---
|
|
|
|
# Get files
|
|
$files = @()
|
|
$files += Get-Item -Path "$PSScriptRoot\..\License.txt"
|
|
$files += Get-ChildItem -Path "$PSScriptRoot\..\DiscordChatExporter.Gui\bin\Release\*" -Include "*.exe", "*.dll", "*.config"
|
|
|
|
# Pack into archive
|
|
$files | Compress-Archive -DestinationPath "$PSScriptRoot\Portable\bin\DiscordChatExporter.zip" -Force
|
|
|
|
# --- CLI ---
|
|
|
|
# Get files
|
|
$files = @()
|
|
$files += Get-Item -Path "$PSScriptRoot\..\License.txt"
|
|
$files += Get-ChildItem -Path "$PSScriptRoot\..\DiscordChatExporter.Cli\bin\Release\net46\*" -Include "*.exe", "*.dll", "*.config"
|
|
|
|
# Pack into archive
|
|
$files | Compress-Archive -DestinationPath "$PSScriptRoot\Portable\bin\DiscordChatExporter.CLI.zip" -Force |