Skip to content

Commit

Permalink
feat: add publishing script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zanxis committed Jun 8, 2024
1 parent 4ba1964 commit c4e5f8b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 6 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@

QMN Downloader is an automated CLI tool that allows users to download content from the QueerMeNow blog website. With it, you can select any blog URL you desire and download all the main media content (including images and videos), saving them locally on your device in an organized, quick, and easy manner.

## Demo

<!---
[![ASCII Demo](https://github.com/miraclx/freyr-js/raw/master/media/demo.gif)](https://asciinema.org/a/KH5xyBq9G8Wf5Dyvj6AfqXwYr?autoplay=1 "Click to view ASCII")
-->

## Disclaimer

Due to the nature of this application being geared towards NSFW content, I declare that I am not responsible for anything that happens to you while using this tool. By downloading content, you are doing so at your own risk. If you are underage, please leave this repository.
Expand Down
35 changes: 35 additions & 0 deletions scripts/ps/publish_all.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Clear the console window
Clear-Host

# Define solutions and publishing directories
$csproj = "..\..\src\QMNDownloader.csproj"
$outputDirectory = "..\..\publish"

# List of target platforms
$platforms = @(
"win-x86", "win-x64", "win-arm64",
"osx-x64", "osx-arm64",
"linux-x64", "linux-arm", "linux-arm64"
)

# Function to publish a project for a given platform
function Publish-Project($projectPath, $platform) {
Write-Host "Publishing $projectPath for $platform..."
dotnet publish $projectPath -c Release -r $platform --output "$outputDirectory\QMNDownloader-$platform-v0.0.0.0"
Write-Host "Publishing to $platform completed."
}

# Delete existing directories
if (Test-Path $outputDirectory -PathType Container) {
Remove-Item -Path $outputDirectory -Recurse -Force
Write-Host "Existing directory deleted."
}

# Publish for all platforms
Write-Host "Publishing to all platforms..."
foreach ($platform in $platforms) {
Publish-Project $csproj $platform
Write-Host "Next..."
}

Write-Host "All publishing processes have been completed."

0 comments on commit c4e5f8b

Please sign in to comment.