Skip to content

Added IrfanView x64 - #47

Closed
Judah Gabriel Himango (JudahGabriel) wants to merge 6 commits into
microsoft:masterfrom
JudahGabriel:master
Closed

Judah Gabriel Himango (JudahGabriel) wants to merge 6 commits into
microsoft:masterfrom
JudahGabriel:master

Conversation

@JudahGabriel

@JudahGabriel Judah Gabriel Himango (JudahGabriel) commented May 4, 2020 •

Copy link
Copy Markdown
Microsoft Reviewers: Open in CodeFlow

@wingetbot

Copy link
Copy Markdown
Collaborator

/AzurePipelines run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@wingetbot wingetbot (wingetbot) added the Manifest-Validation-Error Manifest validation failed label May 4, 2020
@ghost

Copy link
Copy Markdown

JudahGabriel The package manager bot determined that the metadata was not compliant. Be sure to use a tool like VSCode (https://code.visualstudio.com/) to make sure your request is YAML syntax is correct. Please also verify the YAML file is compliant with the package manager specification (https://github.com/microsoft/appinstaller-pkgs/YAMLSpec.md)
For details on the error, see the error listed in the build pipeline.

@wingetbot

Copy link
Copy Markdown
Collaborator

/AzurePipelines run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@wingetbot wingetbot (wingetbot) added the Manifest-Validation-Error Manifest validation failed label May 5, 2020
@ghost

Copy link
Copy Markdown

JudahGabriel The package manager bot determined that the metadata was not compliant. Be sure to use a tool like VSCode (https://code.visualstudio.com/) to make sure your request is YAML syntax is correct. Please also verify the YAML file is compliant with the package manager specification (https://github.com/microsoft/appinstaller-pkgs/YAMLSpec.md)
For details on the error, see the error listed in the build pipeline.

@wingetbot

Copy link
Copy Markdown
Collaborator

/AzurePipelines run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@wingetbot wingetbot (wingetbot) added the Manifest-Validation-Error Manifest validation failed label May 5, 2020
@ghost

Copy link
Copy Markdown

JudahGabriel The package manager bot determined that the metadata was not compliant. Be sure to use a tool like VSCode (https://code.visualstudio.com/) to make sure your request is YAML syntax is correct. Please also verify the YAML file is compliant with the package manager specification (https://github.com/microsoft/appinstaller-pkgs/YAMLSpec.md)
For details on the error, see the error listed in the build pipeline.

@wingetbot

Copy link
Copy Markdown
Collaborator

/AzurePipelines run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@wingetbot wingetbot (wingetbot) added the Binary-Validation-Error An error was encountered during the Installers Scan pipeline step. label May 5, 2020
@ghost

Copy link
Copy Markdown

JudahGabriel The package manager bot determined there was an issue with one of the installers listed in the url field, and cannot continue. Please verify the installers are not malicious. If you feel this failure is in error, please file an issue.

@JudahGabriel

Copy link
Copy Markdown
Author

Zach Carpenter (@zachcarp) I moved it to my own CDN, and now I'm getting an error saying the installer might be malicious.

Time to raise the white flag? I don't know what else to do here.

@ghost ghost removed the Needs: author feedback label May 5, 2020
@zachcarp

Copy link
Copy Markdown
Contributor

I wouldn't throw in the towel just yet. We are still in preview. This seems like a great opportunity.

@zachcarp

Copy link
Copy Markdown
Contributor

Demitrius Nelon (@denelon) Can you help take a look at this?

@denelon

Copy link
Copy Markdown
Collaborator

I'm also not able to locate a URL that points directly to the installer file.

@JudahGabriel

Judah Gabriel Himango (JudahGabriel) commented May 5, 2020 •

Copy link
Copy Markdown
Author

I think there are 2 questions here:

  1. How to make IrfanView work with winget, given no direct links to installers
  2. Will Microsoft have its own CDN mirror for installers?

For the first question, I can just host the installer on my CDN: https://winget.b-cdn.net/iview454_setup.exe. However, now that I've done that, I'm seeing the above bot error:

The package manager bot determined there was an issue with one of the installers listed in the url field, and cannot continue. Please verify the installers are not malicious. If you feel this failure is in error, please file an issue.

I do feel it's in error. 😊 It's certainly not malicious. Can you fix the bot?

For the 2nd question, this would fix all the problems, right? Instead of relying on URLs which can break, slow, go down, or get hijacked by malicious parties, Microsoft maintains its own CDN of installers. It also fixes the issue where apps have no direct installer links. Is this planned?

@denelon

Copy link
Copy Markdown
Collaborator

Judah Gabriel Himango (@JudahGabriel) I'm now getting an "Installer hash verification failed" error. You can use the winget client hash command to calculate the SHA256 for the installer.

@wingetbot

Copy link
Copy Markdown
Collaborator

/AzurePipelines run

@wingetbot wingetbot (wingetbot) removed Binary-Validation-Error An error was encountered during the Installers Scan pipeline step. Needs: author feedback labels May 13, 2020
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@wingetbot wingetbot (wingetbot) added the Binary-Validation-Error An error was encountered during the Installers Scan pipeline step. label May 13, 2020
@ghost

Copy link
Copy Markdown

JudahGabriel The package manager bot determined there was an issue with one of the installers listed in the url field, and cannot continue. Please verify the installers are not malicious. If you feel this failure is in error, please file an issue.
For details on the error, see the details link below in the build pipeline.

@JudahGabriel

Judah Gabriel Himango (JudahGabriel) commented May 13, 2020 •

Copy link
Copy Markdown
Author

OK, I updated the manifest to use the zip file found on IrfanView site. And I ran winget validate [the .yml file] locally, and it said "Manifest validation succeeded"

However, pushing it here on GitHub says WinGetSvc-validation (manifest content validation) failed. No further details.

Demitrius Nelon (@denelon) looks like it's being seen as malicious still. 😟

@ghost ghost removed the Needs: author feedback label May 13, 2020
@denelon Demitrius Nelon (denelon) added the Blocking-Issue Manifest validation is blocked by a known issue. label May 16, 2020
@denelon Demitrius Nelon (denelon) linked an issue May 16, 2020 that may be closed by this pull request
@chausner

Copy link
Copy Markdown
Contributor

I think this currently fails due to multiple issues:

  1. ZIP files are currently not supported so you should use the EXE installer instead.

  2. The other problem is that there does not seem to exist any direct download link. The one that you specified that looks like a direct link still resolves to a landing page.

  3. The validation bot currently does not seem to be compatible with websites that don't provide the file size in the response header (Content-Length), see https://dev.azure.com/ms/winget-pkgs/_build/results?buildId=79280&view=logs&jobId=c8020aa5-4aab-5881-691f-21986e02afd0&j=c8020aa5-4aab-5881-691f-21986e02afd0&t=bade86d6-d2be-5ddd-c1b9-7d8db9c4a60d:

    Error occurred during installer copy from https://www.irfanview.info/files/iview454_x64.zip.
     The Content-Length for the copy source is not specified.
    

@superusercode

Copy link
Copy Markdown
Contributor

@JudahGabriel

Copy link
Copy Markdown
Author

Code. (@superusercode) is there a direct link to the installer? I don't see any on that page.

@JudahGabriel

Judah Gabriel Himango (JudahGabriel) commented May 26, 2020 •

Copy link
Copy Markdown
Author

Thanks for the link there. Looks like that's not using any dynamic download tokens. I'll try using that link in the package. Woops, looks like that download no longer works. I suspect there's an expiration token in that URL that allowed it to work initially.

@JudahGabriel

Copy link
Copy Markdown
Author

Looks like someone found a direct link to the installer and issued a working PR: #1208

Closing this; we should use that PR instead.

CJ Barrett (seejdev) pushed a commit to seejdev/winget-pkgs that referenced this pull request Nov 4, 2021
* Execution Context

* Refactor done and tests updated

* PR comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Binary-Validation-Error An error was encountered during the Installers Scan pipeline step. Blocking-Issue Manifest validation is blocked by a known issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

winget-cli .zip files not supported

6 participants