Git Product home page Git Product logo

Comments (7)

russellbanks avatar russellbanks commented on June 4, 2024 1

Ah okay, thanks for clarifying. I'll fix that now.

from komac.

russellbanks avatar russellbanks commented on June 4, 2024 1

Fixed! :)

java -jar komac-1.1.0-all.jar update --id sharkdp.fd --version 8.8.0 --urls https://github.com/sharkdp/fd/releases/download/v8.7.0/fd-v8.7.0-i686-pc-windows-msvc.zip,https://github.com/sharkdp/fd/releases/download/v8.7.0/fd-v8.7.0-x86_64-pc-windows-msvc.zip
Found sharkdp.fd in the winget-pkgs repository
Found latest version: 8.7.0
# Created with Komac v1.1.0
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.4.0.schema.json

PackageIdentifier: sharkdp.fd
PackageVersion: 8.8.0
InstallerType: zip
NestedInstallerType: portable
ReleaseDate: 2023-02-24
Installers:
- Architecture: x86
  NestedInstallerFiles:
  - RelativeFilePath: fd-v8.8.0-i686-pc-windows-msvc\fd.exe
    PortableCommandAlias: fd
  InstallerUrl: https://github.com/sharkdp/fd/releases/download/v8.7.0/fd-v8.7.0-i686-pc-windows-msvc.zip
  InstallerSha256: 0C7851A9F6C587EA1ADB439748C33AF23E453EB67CB14B6F1A3B9813DB49890B
  Dependencies:
    PackageDependencies:
    - PackageIdentifier: Microsoft.VCRedist.2015+.x86
- Architecture: x64
  NestedInstallerFiles:
  - RelativeFilePath: fd-v8.8.0-i686-pc-windows-msvc\fd.exe
    PortableCommandAlias: fd
  InstallerUrl: https://github.com/sharkdp/fd/releases/download/v8.7.0/fd-v8.7.0-x86_64-pc-windows-msvc.zip
  InstallerSha256: 657CF430A1B349CE2B9CCEEAED0B14220A417BBF24A85995AA6FBF8F746F4E03
  Dependencies:
    PackageDependencies:
    - PackageIdentifier: Microsoft.VCRedist.2015+.x64
ManifestType: installer
ManifestVersion: 1.4.0

from komac.

russellbanks avatar russellbanks commented on June 4, 2024 1

I'll make a 1.1.0 release tomorrow.

from komac.

russellbanks avatar russellbanks commented on June 4, 2024

Are there scenarios other than versions that should be considered? I can add a prompt when updating if so. Otherwise, this should already be covered - vedantmgoyal2009/winget-releaser#82 (comment).

The RelativeFilePath should automatically update. For example:
RelativeFilePath: bat-v0.22.1-x86_64-pc-windows-msvc\bat.exe
Will become (if the new version is 0.23.0, for example):
RelativeFilePath: bat-v0.23.0-x86_64-pc-windows-msvc\bat.exe
It does this by getting all the previous versons on winget and replacing the part of the string that contains one of those versions with the new version.

from komac.

sitiom avatar sitiom commented on June 4, 2024

The last time I checked, it didn't work. I had to update the RelativeFilePath manually (microsoft/winget-pkgs@a5f1e4c).

from komac.

russellbanks avatar russellbanks commented on June 4, 2024

I just gave it a test with your case here and it appears to work (I put in the same url twice to be quick):

The important bit here is - RelativeFilePath: fd-v8.8.0-i686-pc-windows-msvc/fd.exe

[Required] Enter the Package Identifier, in the following format <Publisher shortname.Application shortname>
Example: Microsoft.Excel
Package Identifier: sharkdp.fd

Found sharkdp.fd in the winget-pkgs repository
Found latest version: 8.7.0
[Required] Enter the version.
Example: 8.44.2
Package Version: 8.8.0

Installer Entry 1/2
  Architecture: x86
  Installer Type: zip

[Required] Enter the download url to the installer
Installer Url: https://github.com/sharkdp/fd/releases/download/v8.7.0/fd-v8.7.0-i686-pc-windows-msvc.zip

[Required] Enter the nested installer type
Options: exe, burn, inno, nullsoft, portable
Enter Choice: portable

[Optional] Enter the command line alias to be used for calling the package
Installer: fd-v8.7.0-i686-pc-windows-msvc/fd.exe
Portable Command Alias:

Installer Entry 2/2
  Architecture: x64
  Installer Type: zip

[Required] Enter the download url to the installer
Installer Url: https://github.com/sharkdp/fd/releases/download/v8.7.0/fd-v8.7.0-i686-pc-windows-msvc.zip

# Created with Komac v1.1.0
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.4.0.schema.json

PackageIdentifier: sharkdp.fd
PackageVersion: 8.8.0
InstallerType: zip
NestedInstallerType: portable
NestedInstallerFiles:
- RelativeFilePath: fd-v8.8.0-i686-pc-windows-msvc/fd.exe
ReleaseDate: 2023-02-24
Installers:
- Architecture: x86
  InstallerUrl: https://github.com/sharkdp/fd/releases/download/v8.7.0/fd-v8.7.0-i686-pc-windows-msvc.zip
  InstallerSha256: 0C7851A9F6C587EA1ADB439748C33AF23E453EB67CB14B6F1A3B9813DB49890B
  Dependencies:
    PackageDependencies:
    - PackageIdentifier: Microsoft.VCRedist.2015+.x86
- Architecture: x86
  InstallerUrl: https://github.com/sharkdp/fd/releases/download/v8.7.0/fd-v8.7.0-i686-pc-windows-msvc.zip
  InstallerSha256: 0C7851A9F6C587EA1ADB439748C33AF23E453EB67CB14B6F1A3B9813DB49890B
  Dependencies:
    PackageDependencies:
    - PackageIdentifier: Microsoft.VCRedist.2015+.x86
ManifestType: installer
ManifestVersion: 1.4.0

from komac.

sitiom avatar sitiom commented on June 4, 2024

Here is the result when directly inputting via the parameters:
image

from komac.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.