Commit Graph
82 Commits
Author SHA1 Message Date
Kaleb Luedtke 973bc8ab5b Use non-duplicating hash (#136423) 2024-01-25 12:47:56 -08:00
Kaleb Luedtke e8e741d2f2 Add move package function to YamlCreate (#136077)
* Add move package function to YamlCreate

* Remove unnecessary set

* String is not DirectoryInfo

* No need to log branches created

* Add function for exiting cleanly

* Fix bug

* Begin work for PR creation

* Always use master for moving packages

* Add progress output

* Additional formatting

* Bump Script Version

* Trim trailing whitespace

* Add a hash unique to each run

* Spelling

* Always set the upstream URL

* More Spelling

* Fix comment
2024-01-25 11:09:56 -08:00
Kaleb Luedtke cf1a816684 Fix YamlCreate (#132441) 2024-01-02 11:45:18 -08:00
Kaleb Luedtke 1fabed40ac Lint Community Scripts (#132425)
* Lint Community Scripts

* Fix ScriptAnalyzer warnings and properly justify suppressed items

* Bump Version

* Fix PS7 Analyzer Errors
2024-01-02 10:02:09 -08:00
Kaleb Luedtke 0d723bfa31 [YamlCreate] Request ARP Values on Quick Update (#129471)
* Begin working on ARP updates

* Remove debug message

* Update Comment
2023-12-06 13:00:57 -08:00
Kaleb Luedtke 510c650110 [YamlCreate] Read PFN from MSIX/APPX/Bundle without installing (#129186)
* Read PFN from MSIX/APPX/Bundle without installing

* Fix Bugs

* Bump Version
2023-12-05 11:58:04 -08:00
Kaleb Luedtke e708f1e2c6 Address PR Comments (#129172) 2023-12-04 08:43:50 -08:00
Kaleb Luedtke f29abf24ab Improve how YamlCreate writes to files (#129167)
* Improve how YamlCreate writes to files

* Fix arg
2023-12-04 08:16:59 -08:00
Kaleb Luedtke 7df2d35c75 Update YamlCreate to Manifest 1.5.0 (#115783) 2023-08-15 08:07:20 -07:00
Charlie Chen e288525ae6 Fix Bug in YamlCreate (#113870) 2023-08-01 11:17:52 -07:00
Kaleb Luedtke e41fcb0a66 Ensure YamlCreate re-encodes spaces (#113795) 2023-07-31 15:42:40 -07:00
Kaleb Luedtke ccf209252b Don't comment in manifest fields not accessible to contributors (#108651) 2023-06-01 12:00:03 -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
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
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 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
Kaleb Luedtke d01564333c Collect Additional Debug Info from YamlCreate (#76948) 2022-09-01 13:05:08 -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 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 e9e79b3ce4 Force Git version >= 2.35.2 (#57741) 2022-05-09 07:15:24 -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
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