You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.0 KiB
27 lines
1.0 KiB
# --- 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\ |