Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No portable executable/ windows installer #310

Closed
Chaython opened this issue May 13, 2024 · 2 comments
Closed

No portable executable/ windows installer #310

Chaython opened this issue May 13, 2024 · 2 comments
Labels
question Further information is requested

Comments

@Chaython
Copy link

Chaython commented May 13, 2024

The link on the website you link out to is dead, and the past several editions don't have the windows versions only the .deb listed?
I'd be fine with using the python edition if only Windows environmental variables actually worked ;'(

https://github.com/jeanslack/Videomass/releases/download/v5.0.2/Videomass-v5.0.2_x86_64-portable.7z is the working link for the latest windows portable version. In your website you link to https://github.com/jeanslack/Videomass/releases/download/v5.0.12/Videomass-v5.0.2_x86_64-portable.7z, which evidently doesn't exist.

@Chaython
Copy link
Author

Chaython commented May 13, 2024

Rather than linking to your site, then linking back to github and manually updating your site, you could recommend deploying via powershell, this is an adaption of my brave portable updater script which downloads and extracts the package

Rather than linking to your site, then linking back to github and manually updating your site, you could recommend deploying via powershell, this is an adaption of my brave portable updater script to download the .7z


# Set the owner and repository
$owner = "jeanslack"
$repo = "Videomass"

# Set the URL for the releases
$url = "https://api.github.com/repos/$owner/$repo/releases"

# Get the releases information
$response = Invoke-RestMethod -Uri $url
$releases = $response

# Find the most recent release with the required asset
$latestRelease = $null
foreach ($release in $releases) {
    foreach ($a in $release.assets) {
        if ($a.name.EndsWith("win32-x64.zip")) {
            $latestRelease = $release
            break
        }
    }
    if ($latestRelease -ne $null) {
        break
    }
}

if ($latestRelease -ne $null) {
    # Find the asset with a name ending in portable.7z
    $asset = $null
    foreach ($a in $latestRelease.assets) {
        if ($a.name.EndsWith("portable.7z")) {
            $asset = $a
            break
        }
    }

    if ($asset -ne $null) {
        # Get the download URL for the asset
        $downloadUrl = $asset.browser_download_url

        # Download the asset
        Write-Host "Downloading asset..."
        $response = Invoke-WebRequest -Uri $downloadUrl

        # Save the asset to a file
        $filename = [System.IO.Path]::GetFileName($downloadUrl)
        [System.IO.File]::WriteAllBytes($filename, $response.Content)

        Write-Host "Download completed successfully"
    } else {
        Write-Host "Asset not found"
    }
} else {
    Write-Host "No releases found"
}

@jeanslack
Copy link
Owner

jeanslack commented May 13, 2024

Sorry, you're right, I'll take a look at it later.
Thanks for the report.

UPDATE
The portable version of Videomass updated to the latest version is now included.
The link to the 7z archive is now working too.
I hope everything goes well.

I'd be fine with using the python edition if only Windows environmental variables actually worked ;'(

Do you mean the Python environment variables or the videomass.exe executable installed via pip?

@jeanslack jeanslack added the question Further information is requested label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants