Comments (7)
Found another package with the same issue, however this time its just between 2 MSI's
./KomacPortable-linux-nightly-x64 update -i Recoupler.AudioBookConverter -v 6.2.10 -u https://github.com/yermak/AudioBookConverter/releases/download/version_6.2.10/AudioBookConverter-All-Users-6.2.10.msi https://github.com/yermak/AudioBookConverter/releases/download/version_6.2.10/AudioBookConverter-Single-User-6.2.10.msi
Installers:
- Architecture: x64
InstallerUrl: https://github.com/yermak/AudioBookConverter/releases/download/version_6.2.10/AudioBookConverter-All-Users-6.2.10.msi
InstallerSha256: ADF36241F1DD4D2193832C69B516C1D84BFFA89634D949E17B1DF469BEF28A47
ManifestType: installer
Found via microsoft/winget-pkgs#146060
from komac.
I can't reproduce the first example on main:
komac update -i Iterate.MountainDuck -v 4.15.6.21921 -u https://dist.mountainduck.io/Mountain%20Duck%20Installer-4.15.6.21921.exe https://dist.mountainduck.io/Mountain%20Duck%20Installer-4.15.6.21921.msi
# Created with komac v2.1.1
# yaml-language-server: $schema=https://aka.ms/winget-manifest.installer.1.6.0.schema.json
PackageIdentifier: Iterate.MountainDuck
PackageVersion: 4.15.6.21921
Platform:
- Windows.Desktop
Scope: machine
InstallModes:
- interactive
- silent
- silentWithProgress
InstallerSwitches:
Upgrade: /norestart
Custom: /norestart
InstallerSuccessCodes:
- 3010
UpgradeBehavior: install
ReleaseDate: 2024-03-14
Installers:
- Architecture: x64
InstallerType: burn
InstallerUrl: https://dist.mountainduck.io/Mountain%20Duck%20Installer-4.15.6.21921.exe
InstallerSha256: 1E8E52BE10AFEB975402D06AE3D4171D776E26C402AE6CA35649FD9D05855215
- InstallerLocale: en-US
Architecture: x64
InstallerType: wix
InstallerUrl: https://dist.mountainduck.io/Mountain%20Duck%20Installer-4.15.6.21921.msi
InstallerSha256: E82DBFF995C5A61329445E7879C5042C3B106D5D2EC6395B5979FF587F8E672C
ProductCode: '{4C26F964-48D2-4D80-8AE4-17728CCF4910}'
AppsAndFeaturesEntries:
- UpgradeCode: '{FF813E13-BE66-48F5-8C4F-1568C9660323}'
ManifestType: installer
ManifestVersion: 1.6.0
I can reproduce the issue with Recoupler.AudioBookConverter
so I'll take a look at that.
from komac.
The issue with Recoupler.AudioBookConverter
occurs because Komac looks for the keyword user
in the URL to get an indication of whether it's machine or user scope and both MSIs have that - Single-User
and All-Users
. I've changed it so that the machine check if done first and All-Users
is part of that check.
from komac.
I've changed it so that the machine check if done first and
All-Users
is part of that check.
I've also added functionality in 7b52a63 to get the install scope (ALLUSERS) from the MSIs which further ensures that they are identified as separate Machine and Per-User installers.
from komac.
I was able to reproduce your first example since 7b52a63. This happened because the installers were matching incorrectly so to fix it I've given more weight to the installer type when matching.
from komac.
Issue might still be around
./target/release/komac update -i OpenMedia.4KStogram -v 4.8.1 -u https://dl.4kdownload.com/app/4kstogram_4.8.0_online.exe https://dl.4kdownload.com/app/4kstogram_4.8.0_x64_online.exe https://dl.4kdownload.com/app/4kstogram_4.8.0.msi https://dl.4kdownload.com/app/4kstogram_4.8.0_x64.msi
Installers:
- Architecture: x86
InstallerUrl: https://dl.4kdownload.com/app/4kstogram_4.8.0.msi
InstallerSha256: 0F02D31A5B7839FE7529C1F4A8A8186336817E34B189B90808E15EAC59C3A19E
ProductCode: '{EE8C017B-2444-490E-89E1-CDF16F4933E8}'
- Architecture: x64
InstallerUrl: https://dl.4kdownload.com/app/4kstogram_4.8.0_x64.msi
InstallerSha256: 4E2A49A3FE7769323542623B8AB0374781C5F7086F9700108B82FE94FFB56DC6
ProductCode: '{CB534061-F938-46A1-B02B-4FD24914525D}'
git log -p -1
commit a2ba6b163c361b391f3bba67afb540b61a8ab362 (HEAD -> main, origin/main, origin/HEAD)
Author: Russell Banks <[email protected]>
Date: Wed Mar 27 18:08:52 2024 +0000
Give more weight to installer type when matching installers
from komac.
Issue might still be around
This one is happening because the exe installers are correctly being identified as Burn installers but the previous manifest has them as exe
, meaning the extra weighting for the matching installer types isn't applicable. I'll figure out how to match still when the previous installer has the wrong installer type.
from komac.
Related Issues (20)
- [Bug]: Installer Switch missing from previous manifest HOT 1
- [Bug]: Nested nullsoft installer detected as exe HOT 9
- [Feature/Idea]: Interactive menus for updating HOT 1
- [Bug]: More than 1 quoted URL crashes komac HOT 1
- [Bug]: OpenSSL v1 is a undocumented requirement - Makes Komac unusable on modern systems HOT 4
- [Bug]: The value of "NestedInstallerFiles" went missing
- [Bug]: komac omits `MinimumOSVersion` from previous manifest HOT 1
- [Bug]: Brackets not a valid delimiter around an architecture in a URL HOT 4
- [Bug]: Error when trying to update an existing package to a new version HOT 4
- [Bug]: Unexpected str: "\n" and Checksums in ReleaseNotes
- [Feature/Idea]: Add rpm to ci/cd
- [Bug]: `komac update` removes `AppsAndFeaturesEntries` in `Installers` HOT 2
- [Bug]: Crashes when these specific URLs are used HOT 1
- [Bug]: Issue with UniExtract2
- [Bug]: RelativeFilePath not updated in current nightly build HOT 1
- [Feature/Idea]: generate .spec and .srpm files in relese ci/cd
- [Bug]: The installer type is unexpectedly changed to portable HOT 1
- [Feature/Idea]: support using a package as a template for new a new package
- [Bug]: `PortableCommandAlias` should be omitted if left empty HOT 1
- [Bug]: No release was found with tag of download HOT 6
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.