mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-23 03:06:53 -04:00
27 lines
No EOL
1 KiB
PowerShell
27 lines
No EOL
1 KiB
PowerShell
# --- PORTABLE / 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
|
|
New-Item "$PSScriptRoot\Portable\GUI\bin" -ItemType Directory -Force
|
|
$files | Compress-Archive -DestinationPath "$PSScriptRoot\Portable\GUI\bin\DiscordChatExporter.zip" -Force
|
|
|
|
# --- PORTABLE / 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
|
|
New-Item "$PSScriptRoot\Portable\CLI\bin" -ItemType Directory -Force
|
|
$files | Compress-Archive -DestinationPath "$PSScriptRoot\Portable\CLI\bin\DiscordChatExporter.CLI.zip" -Force
|
|
|
|
# --- CHOCOLATEY ---
|
|
|
|
# Create package
|
|
New-Item "$PSScriptRoot\Choco\bin\" -ItemType Directory -Force
|
|
choco pack $PSScriptRoot\Choco\discordchatexporter.nuspec --out $PSScriptRoot\Choco\bin\ |