Comments (7)
Ah okay, thanks for clarifying. I'll fix that now.
from komac.
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.
I'll make a 1.1.0 release tomorrow.
from komac.
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.
The last time I checked, it didn't work. I had to update the RelativeFilePath manually (microsoft/winget-pkgs@a5f1e4c).
from komac.
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.
Here is the result when directly inputting via the parameters:
from komac.
Related Issues (20)
- docs: Description of --urls needs clarification HOT 2
- [Bug]: Failed to delete downloaded temp file HOT 1
- [Feature/Idea]: Upgrade URLs to HTTPS
- [Feature/Idea]: Submit macOS version to Homebrew package manager HOT 2
- [Bug]: Unable to create PR HOT 6
- [Bug]: komac are not reusing latest version of manifest when updating package
- [Bug]: Failed to delete temp file HOT 1
- [Bug]: `Unknown file magic` with .msi installer HOT 2
- [Minor Docs Bug]: Release artifacts still have "nightly" branding HOT 1
- [Feature/Idea]: Support lowercase -v for version when no subcommand is supplied HOT 1
- [Bug]: Tags getting cut off on dashes HOT 2
- [Feature/Idea]: Bootstrap VCRedist dependency for Windows installer HOT 2
- [Bug]: Output incomplete tag HOT 1
- [Feature/Idea]: Prompt for update command HOT 5
- [Bug]: Some issue with --identifier HOT 2
- [Bug]: "No RT_VERSION was found in the exe"
- [Bug]: Some problem with zip file
- [Bug]: De wanna wanga?
- [Bug]: ProductCode UUID parsing failed HOT 1
- [Bug]: Unable to install from homebrew tap, the download URL is incorrect HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from komac.