Commit Graph
89 Commits
Author SHA1 Message Date
Muhammad Danish 6cd5f77f3b Make PortableCommandAlias optional in YamlCreate (#101383)
* Make PortableCommandAlias optional

* remove dead code
2023-04-03 09:17:49 -07:00
Kaleb Luedtke 596da68f8d Ask users for single manifest only (#99558) 2023-03-15 07:36:38 -07:00
Kaleb LuedtkeandMuhammad Danish d830b814a2 [YamlCreate] Auto-set upstream (#98317)
* Auto-set upstream

* Remove added whitespace

* Fix bug

* Update Tools/YamlCreate.ps1

Co-authored-by: Muhammad Danish <mdanishkhdev@gmail.com>

* Update Tools/YamlCreate.ps1

Co-authored-by: Muhammad Danish <mdanishkhdev@gmail.com>

---------

Co-authored-by: Muhammad Danish <mdanishkhdev@gmail.com>
2023-03-03 10:39:34 -08:00
Joakim a3b0f70c1f Match messages with version check (#96566) 2023-02-13 15:07:29 -08:00
Kaleb Luedtke aa428fe207 Don't route through aka.ms when running on Github-Actions (#96391) 2023-02-11 22:29:19 -08:00
Kaleb Luedtke 21ba86cec0 Ignore Malware Scan in Sandbox (#96095) 2023-02-10 11:11:13 -08:00
Vedant ad2531e27f [YamlCreate] Update minimum required version of Git (#94134) 2023-02-09 10:27:55 -08:00
Kaleb Luedtke a379f83e4f Bump YamlCreate to use manifest v1.4 (#87349) 2023-01-30 13:54:00 -08:00
Kaleb Luedtke eee108f59d Add Documentation for manifest 1.4 (#87347)
* Add Documentation for manifest 1.4

* Update docs with respect to .zip

* Clarify language
2023-01-24 09:56:28 -08:00
Kaleb Luedtke a41c4baf04 Limit PR Template Questions on Removal (#89891)
* Limit PR Template Questions on Removal

* Fix duplicate entries
2022-11-28 11:56:30 -08:00
Kaleb Luedtke c9a065406b Re-sort Installer Keys when Auto mode is used (#87476) 2022-11-11 23:59:33 +00:00
Kaleb Luedtke d22bc4fd28 Fix WIX detection on unix (#86325) 2022-10-27 20:35:16 +00:00
Kaleb Luedtke 9379808303 Add Option for Explicit Menus (#86327) 2022-10-26 10:44:16 -07:00
Kaleb LuedtkeandSpecterShell 3fd9a8bfa6 No finally scriptblock after downloading error (Trenly/winget-pkgs#176) (#85032)
Co-authored-by: SpecterShell <56779163+SpecterShell@users.noreply.github.com>
2022-10-18 15:30:52 -07:00
Kaleb Luedtke 3b49522527 Don’t autodetect Zip until 1.4 (#82919) 2022-10-10 07:41:57 -07:00
Kaleb LuedtkeandSpecterShell 0dc1ba40f7 Fix Typo (#174) (#80221)
Co-authored-by: SpecterShell <56779163+SpecterShell@users.noreply.github.com>
2022-09-20 10:32:20 -07:00
Kaleb LuedtkeandEsco 616129d52b [YamlCreate] Zip Support (#80127)
* Rewrite Join-Paths

* Remove all trailing whitespace
* Fixes an issue where adding in commented keys left whitespace after the key
  * Root Cause: Incorrect regex used when replacing (.*)$([char]0x2370)
  * Potential fix considered: Use (.*)\s$([char]0x2370) instead; This was avoided in case there were ever a situation where the char is not preceded by a space
  * Implemented fix: Instead of reading the file as a single raw string, read in each line individually.
    * Implemented new RightTrimString method to preserve leading whitespace, as YAML requires it
    * Skip last line of file, since we just wrote the file it is guaranteed to end in an empty newline

* Begin support for .zip

* Stage 2 of zip implementation

* Bug Fixes

* Don't move nested installer data

* Fix Preservation of ReleaseDate

* Detect when raw schema links are needed

* Fix Typo

* Move Progress Preference to top level

* Fix error check

* Bump Version

* Add setting for changing Manifest Version

* Use Prerelease for Sandbox if required

* Linting

* Add check for Zip minimum manifest version

Co-authored-by: Esco <OfficialEsco@users.noreply.github.com>
2022-09-19 19:40:18 -07:00
b4d5b4fa48 Unofficial Linux Support for YamlCreate (#79847)
* gh and git fix

* Temprary temp fix

* Rewrite Join-Paths

* Git version regex fix

* More Join-Path fixes

* YamlCreate 2.1.6 Patch

* git add fix

* git add fix v2

* git add fix v3

* Switch to WSL compatible Get-Command and Fix git add

* Add folder on deletions

* Check for winget command to ensure validation on PR

* Unix ProductCode support

* Linting

* Remove all trailing whitespace
* Fixes an issue where adding in commented keys left whitespace after the key
  * Root Cause: Incorrect regex used when replacing (.*)$([char]0x2370)
  * Potential fix considered: Use (.*)\s$([char]0x2370) instead; This was avoided in case there were ever a situation where the char is not preceded by a space
  * Implemented fix: Instead of reading the file as a single raw string, read in each line individually.
    * Implemented new RightTrimString method to preserve leading whitespace, as YAML requires it
    * Skip last line of file, since we just wrote the file it is guaranteed to end in an empty newline

Co-authored-by: Esco <OfficialEsco@users.noreply.github.com>
Co-authored-by: wingetbot <63816999+wingetbot@users.noreply.github.com>
2022-09-19 07:08:43 -07:00
Charles Gagnon 8697650e4d Don't require ReleaseNotes for ReleaseNotesUrl (#79487)
Fixes https://github.com/microsoft/winget-pkgs/issues/79486
2022-09-15 12:03:32 -07:00
Kaleb Luedtke efee984708 Standardize Whitespace (#77880)
* Fix Spellcheck

* Standardize Whitespace

* Additional Whitespace fixes

* Fix more whitespace
2022-09-11 14:08:24 -07:00
Jamie Magee dbbc193e83 Add $schema to cgmanifest.json (#76875) 2022-09-02 09:30:34 -07:00
Kaleb Luedtke d01564333c Collect Additional Debug Info from YamlCreate (#76948) 2022-09-01 13:05:08 -07:00
Kaleb Luedtke 49d9d01b93 Update Line endings of Project Files (#76506)
* Update Line endings of Project Files

* Add .editorconfig line endings
2022-09-01 10:06:57 -07:00
Kaleb Luedtke e0c928fb47 If updating a package which already exists, override the users casing to the casing already used for PackageIdentifier (#71786) 2022-08-24 15:44:56 -07:00
Kaleb LuedtkeandEsco 81b0fa51c8 Enable Zip Testing in Sandbox (#68822)
* Enable Zip Testing in Sandbox

* Suggested Changes

Co-authored-by: Esco <OfficialEsco@users.noreply.github.com>
2022-08-09 10:37:42 -07:00
Kaleb Luedtke d76d0cf0f3 YamlCreate support 1.2 Manifests (#68821)
* Allow Manifest 1.2 for Portable

* Adjust some fields for portable

* Bump version
2022-08-05 11:17:11 -07:00
Kaleb Luedtke d6b7f1c3d5 Add Version Manager to easily switch between winget versions (#67987) 2022-07-29 15:12:27 -07:00
Easton Pillay 4e8a89cddd Fixed hash for VCLibs in SandboxTest.ps1. (#65810) 2022-07-11 15:04:40 -07:00
Kaleb Luedtke e9e79b3ce4 Force Git version >= 2.35.2 (#57741) 2022-05-09 07:15:24 -07:00
Kaleb Luedtke 39d5f240a4 Configure Sandbox and PRTest for experimental features (#57405)
* Allow SandboxTest to use prerelease client

* Experimental Features

* Splat Params
2022-04-12 09:03:02 -07:00
Kaleb Luedtke 5c19f679ea Make Schema Message Dynamic (#56599) 2022-04-05 12:45:18 -07:00
9ab024c566 YamlCreate Bug Fixes (#55091)
* fix: git add command (#162)

* Update YamlCreate.ps1

* apply suggestions by @jedieaston

* use git rev-parse --show-toplevel for SandboxTest path & PR template

* Apply suggestions from code review

Co-authored-by: Kaleb Luedtke <trenlymc@gmail.com>

* Check whether script is inside a clone of winget-pkgs repo

* Move initialization of gitTopLevel to beginning of script

* Fix non-standard directory separator

Co-authored-by: Kaleb Luedtke <trenlymc@gmail.com>

* Fix: Installer level should override root level

Co-authored-by: Begula <83997633+vedantmgoyal2009@users.noreply.github.com>
2022-03-21 09:51:34 -07:00
Kaleb Luedtke 5a229b0c13 Fix: Test filename for validity before downloading (#54359) 2022-03-14 11:33:20 -07:00
Kaleb Luedtke 1a1c360346 Fix: Don't commit files outside of ./manifests/* (#161) (#51546) 2022-03-11 07:41:16 -08:00
Joakim 5865f22530 Fixed SandboxTest after fixed typo (#50223) 2022-03-05 13:18:47 -08:00
Easton Pillay 6500c4a8be Fixed SandboxTest.ps1 to be compatible with winget v1.2. (#50164)
* Added Microsoft UI XAML dependency to SandboxTest.ps1.

* Fixed spelling for hash file.
2022-03-05 13:03:45 -08:00
Kaleb Luedtke a2954b1d2d Make sandbox always log verbose install (#49783) 2022-03-02 12:51:44 -08:00
Kaleb Luedtke abe1c6f261 YamlCreate v2.1.0 (#47087)
* Url checking (Trenly/winget-pkgs#148)

* Prompt user to use direct URL

* Formatting

* Fix: PS7 Resource Delegation

* Ignore github for url checking

* Add messaging for User Experience

* Fix bug where URI could contain invalid characters

* Match WIX logic to wingetcreate (Trenly/winget-pkgs#152)

* Fix: Don't retain SignatureSha256 between installers

* Culture sorting (Trenly/winget-pkgs#157)

* Set culture of current thread while running
* Fix Null Value
2022-02-23 10:15:36 -08:00
Kaleb Luedtke f707aec73e YamlCreate.ps1 - Use less intensive WIX detection (#45516)
* Formatting

* Use less intensive matching (#149)

* Bump Version
2022-02-11 08:38:25 -08:00
Kaleb Luedtke dc889c2486 Fix: Add UserAgent (#43164)
* Resolves Trenly/winget-pkgs#142
2022-01-27 11:03:35 -08:00
Kaleb Luedtke 59ff679ae3 Use COM API + Wix (#139) (#42197)
* Use COM API + Wix

* Get Value of Matches

* Fix: Clear Product code from memory before reading

* Remove ProductCode on Burn installer types

* Convert MSI to WIX where appropriate (#140)

* Automatically Convert MSI to WIX where applicable

* Use proper separators

* Change check to be 'Windows Installer' only for pure MSI
* Bump version
2022-01-25 16:35:29 -08:00
Kaleb LuedtkeandVedant 68ea6fb2b0 YamlCreate v2.0.5 (#41445)
* Prepare file for 1.1.0 manifests - Trenly/winget-pkgs#31

* Fix Trenly/winget-pkgs#131

* Minor bug fixes and enhancements (#135)

* Check dependency before settings

* Execute `Get-AppLockerFileInformation` only in Win

* Fix: Use combined hashes (#136)

* Bump to v2.0.5

* Clear volatile fields 1.1.0 (#137)

* Prompt for volatile Release Values

* Add Patterns for release notes

* Clear volatile Locale fields on update

* Clear volatile Locale for additional locales

* Clear ReleaseDate on automatic-type upgrades

Co-authored-by: Vedant <83997633+vedantmgoyal2009@users.noreply.github.com>
2022-01-24 12:42:50 -08:00
Kaleb Luedtke 6d463a8746 Compare versions properly (Trenly/winget-pkgs#126) (#37378)
* Compare versions properly (#126)

* Compare versions properly

* Properly cast to array when only single installer
* Bump Version

* Make items lowercase and remove whitespaces (#127)
2021-12-10 07:18:53 -08:00
Kaleb Luedtke dc3925ca5a Minor bug fixes (#36622)
* Fix Architecture Overwriting (#129)

* Preserve Product Codes on exe files (#125)

* Bump Version
2021-12-01 14:03:52 -08:00
Kaleb LuedtkeandVedant 101954cccb Installer Detection Enhancements (#35735)
* Prepare file for 1.1.0 manifests - Trenly/winget-pkgs#31

* Installer detection improvements (#111)

* Begin update in place

* Condense installer switch logic

* Fix Null values

* Prevent null checking

* Cleanup

* Fix missed variable

* Bump version

* Update function calls

* Fix empty ProductCode

* Confirm Architecture when Automatically Detected

* Remove Debug Line

* Add duplicate url check for Quick update

* Remove line used in debugging

* Remove unneeded comment

* Resolves https://github.com/Trenly/winget-pkgs/issues/121

Co-authored-by: Vedant <83997633+vedantmgoyal2009@users.noreply.github.com>
2021-11-29 16:12:38 -08:00
Kaleb Luedtke 5df4f44109 Compare ARP Entries even when Publisher is Null (#34389) 2021-11-12 13:24:41 -08:00
Kaleb Luedtke f02d189ff5 Add switch for keeping branch attached (#34310) 2021-11-12 13:23:47 -08:00
Kaleb Luedtke 380d88c8be Leave Product Codes at Installer Level (#34691) 2021-11-12 07:26:14 -08:00
Kaleb Luedtke 6d7409ef4f Open ARP Entries after Install (#34333)
* Open ARP Entries after Install

* Adjust output and spacing

* Update ARP Display Method

* Update ARP Display Method
2021-11-08 10:24:29 -08:00
Kaleb Luedtke 41c09af624 Add switch to override PR Check Setting (#33958) 2021-11-04 08:08:03 -07:00