Commit Graph
100 Commits
Author SHA1 Message Date
Kaleb Luedtke ac0354ff8e [SandboxTest.ps1] Use the GitHub release instead of downloading the NuGet package (#111941) 2023-07-12 09:25:09 -07:00
Kaleb Luedtke ccf209252b Don't comment in manifest fields not accessible to contributors (#108651) 2023-06-01 12:00:03 -07:00
SpecterShell 8a985b608c Suppress Safety Warning in SandboxTest.ps1 (#108489) 2023-05-30 17:45:12 -07:00
Kaleb Luedtke 6cb14258d6 Make Burn Identification Opt-In (#108269) 2023-05-27 10:04:33 -07:00
Kaleb Luedtke cae7c0fc78 Fix Bug in YamlCreate (#107979) 2023-05-24 07:48:17 -07:00
Kaleb LuedtkeandMuhammad Danish b4b89a0ba7 Detect Inno, NSIS, and Burn automagically (#106356)
* Detect Inno and NSIS automagically

* Make exe's self-clean on updates

* Cleanup

* Nullsoft is only 224 bytes

* Use -join because it's more predictable with array object types

* Automagically Detect Burn

* Apply suggestions from code review

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

* Read at most 8 * MaxInt bytes

---------

Co-authored-by: Muhammad Danish <mdanishkhdev@gmail.com>
2023-05-18 10:25:58 -07:00
Muhammad Danish e8bfcbc4fb Update PRTest.ps1 output messages (#106778) 2023-05-15 10:26:58 -07:00
Kaleb Luedtke 3ec035bdd1 Fix Error in SandboxTest.ps1 (#106728)
* Use Count instead of Length to prevent no version

* Fix PRTest too
2023-05-15 10:15:27 -07:00
Kaleb LuedtkeandMuhammad Danish 3a2435d697 Add -WinGetVersion switch to SandboxTest (#106359)
* Add -WinGetVersion switch to SandboxTest

* Update SandboxTest.md (#182)

* Update SandboxTest.md

* Fix description

---------

Co-authored-by: Muhammad Danish <mdanishkhdev@gmail.com>
2023-05-12 09:55:39 -07:00
Kaleb Luedtke 24a590af64 Update SandboxTest.ps1 (#106266) 2023-05-09 14:09:57 -07:00
Kaleb LuedtkeandRussell Banks 971c67dfb6 YamlCreate Improvements (#106351)
* Make YamlCreate Decode URLs

* Bump Version

* Automatically detect scope from URL

* Encode URLs before decoding for safety

* Update Tools/YamlCreate.ps1

Co-authored-by: Russell Banks <74878137+russellbanks@users.noreply.github.com>

* Use Replace instead of Encode

---------

Co-authored-by: Russell Banks <74878137+russellbanks@users.noreply.github.com>
2023-05-09 13:32:27 -07:00
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