Commit Graph
21 Commits
Author SHA1 Message Date
Stephen Gillie 13fbee4257 Fix caps for PackageUrl. (#89451)
Camel case "PackageUrl" is required but spelling case "PackageURL" is present.
2022-12-08 17:12:04 -06:00
Kaleb Luedtke 9379808303 Add Option for Explicit Menus (#86327) 2022-10-26 10:44:16 -07:00
Kaleb Luedtke c3d1911993 Move Release Date to appropriate schema file (#83129)
* Move Release Date to appropriate schema file

* Use spaces instead of tabs
2022-10-11 16:06:21 -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
Kaleb Luedtke efee984708 Standardize Whitespace (#77880)
* Fix Spellcheck

* Standardize Whitespace

* Additional Whitespace fixes

* Fix more whitespace
2022-09-11 14:08:24 -07:00
Daniel Possenriede 8def790e22 Mention Documents/Agreements instead of Document/Agreement field in docs (#76574)
* Document object -> Documents array v1.2

* Agreement object -> Agreements array v1.2

* Agreement object -> Agreements array v1.1

* prettify whitespace

* remove duplicate reference

* fix links to input locales
2022-09-01 10:09:27 -07:00
Kaleb Luedtke 7dcc3b8df2 Add Spell Checking (not /manifests/*) (#66394)
* Add Spell Checking (not /manifests/*)

* Add EOL
2022-07-14 16:21:13 -07:00
Kaleb Luedtke b52ecbec21 Spelling (#66393) 2022-07-14 15:42:27 -07:00
Ryan Fu df0089f7e1 Update 1.2 Schema Documentation (#64749) 2022-07-05 12:27:46 -07:00
Ryan Fu c4ca034a0c initial commit for 1.2 schema docs (#64747) 2022-06-29 15:14:59 -07:00
Ian Gregory 1702f85444 Fix typos in locale schemas (#61770) 2022-05-23 13:48:01 -07:00
Kaleb Luedtke fa3072bb71 Reference links (#56418)
* Convert 1.1.0 Schemas to reference links

* Convert 1.0.0 Schemas to reference links

* Use Reference Links for AUTHORING
2022-03-31 12:05:09 -07:00
e4bbb725b5 Initial Add for 1.1 schema update (#54486)
* Initial Add for 1.1 schema update

* updating links

* Added short example

* Short default locale description

* formatting and installer short example

* Update doc/manifest/schema/1.1.0/installer.md

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

* Update doc/manifest/schema/1.1.0/installer.md

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

* Update doc/manifest/schema/1.1.0/defaultLocale.md

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

* Update doc/manifest/schema/1.1.0/installer.md

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

* Update doc/manifest/schema/1.1.0/installer.md

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

* Update doc/manifest/schema/1.1.0/installer.md

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

* default locale update

* working on installer

Also made some changes to defaultLocale

* Adding a README

* added README for 1.0 schema

* Update installer.md

* installer examples

* version bump

* Merge summary and title for cleanliness

* singleton and README updates

* More updates

* Update singleton.md

* version bump

* different format

* Trenly's awesome suggestion!

* try again?

* maybe <b> does the trick...

* Update version.md

* version formatting

* defaultLocale formatting

* installer formatting

* locale formatting

* singeton formatting

* typo

* typo

* moar typo

* added some links

* cleaning up content

* added locale to 1.0

* Update doc/manifest/schema/1.1.0/README.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.0.0/locale.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.0.0/locale.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.1.0/installer.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.1.0/installer.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.1.0/singleton.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.1.0/singleton.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.1.0/singleton.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.1.0/singleton.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.1.0/singleton.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.1.0/installer.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.1.0/installer.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.1.0/installer.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.1.0/installer.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.1.0/installer.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.1.0/locale.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.1.0/locale.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.1.0/locale.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.1.0/singleton.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.1.0/singleton.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.1.0/singleton.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.1.0/singleton.md

Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>

Co-authored-by: Kaleb Luedtke <trenlymc@gmail.com>
Co-authored-by: Kaleb Luedtke <jluedtk@jci.com>
Co-authored-by: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com>
2022-03-31 10:00:39 -07: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 LuedtkeandEaston Pillay ce879b14de Add Documentation for SandboxTest.ps1 (#34309)
* Add Documentation for SandboxTest.ps1

* Update doc/tools/SandboxTest.md

Co-authored-by: Easton Pillay <easton@planeteaston.com>

Co-authored-by: Easton Pillay <easton@planeteaston.com>
2021-11-08 07:59:01 -08:00
Kaleb Luedtke 41c09af624 Add switch to override PR Check Setting (#33958) 2021-11-04 08:08:03 -07:00
72ac4820f2 Improve YAML Parsing (#21204)
* Install powershell-yaml

* Enforce ordering of keys

* Create function for adding list parameters

* Write Version Manifest using Yaml Parser

* Add To-Do Section

* Rebase on master and cleanup commit history

* Revert inadvertent changes from testing

* Implement logic for installers using YAML parser

* Fix statement in incorrect position

* Remove RAW writing

* Begin reading MultiManifests using Yaml parser

* Cleanup unneeded variables

* Bump Version

* Read parameters from singletons

* Add Product Code

* Abstract ReadInstallerManifest to sub-function

* Fix: Handle uninitialized variables

* Merge New/Update, add EditMetadata

* Fix: Change EditMetadata to work on singleton manifests

* Fix: Update Git commit messages for accuracy

* Remove Empty Manifest Folders

* Fix: Correct text

* Fix: Remove code for testing

* Feature: If old manifests exist, update in place to preserve extra keys

* Fix: Null Error when creating new

* Fix: Cast only when installer code

* Fix: Respect installer locale

* Fix: Use UTF8 Encoding

* Sort Yaml Keys

* Git error handling

* Fixed Moniker prompt for NewLocale

* minItems, maxItems, pattern, variable fix

* Implemented minItems from Schema
* Implemented maxItems from Schema
* Implemented pattern from Schema
* Implemented available Architecture's from Schema
* Implemented available InstallerType's from Schema
* Added $script: to some variables which needs to stay throughout the script

Only tested with one manifest as of now

Cleanup If/Else logic & Rebase on master

* Update method of getting Product Code from installer

* SignatureSha256 and PackageFamilyName (#5)

* More CommitTypes

* Fill in PR Parameters #21940 (#4)

* Detect PackageFamilyName for MSIX/APPX (#8)

* Update YamlCreate.ps1

* Update YamlCreate.ps1

* Exclude .validation (#9)

* Exclude .validation

* Added exclude to ExistingVersions

Co-authored-by: Levvie - she/her <11600822+ItzLevvie@users.noreply.github.com>

* Add new line for PackageFamilyName (#10)

* Standardize Keypress Menus (#11)

* Standardize Keypress Menus

* Fix: Use variable instead of pipeline

* Fix Help Texts & Spacing

* Cleanup Git Messages

* Filter by Yaml

* Remove debugging line

Co-authored-by: Esco <OfficialEsco@users.noreply.github.com>

Co-authored-by: Kaleb Luedtke <kaleb.carver.luedtke@jci.com>
Co-authored-by: Esco <OfficialEsco@users.noreply.github.com>

* Replaced PrBodyContentReply `n with array (#12)

* Menu reduction (#13)

* Simplify Code + Make Issues Entry Safer

* Check issue validity

* Fix unintended Revert

Co-authored-by: Esco <OfficialEsco@users.noreply.github.com>

* Fix unintended Revert

Co-authored-by: Esco <OfficialEsco@users.noreply.github.com>

* Fix unintended Revert

Co-authored-by: Esco <OfficialEsco@users.noreply.github.com>

Co-authored-by: Esco <OfficialEsco@users.noreply.github.com>

* More patterns (#15)

Added pattern for

* PackageIdentifier
* PackageVersion
* PackageFamilyName
* PackageLocale

* Readability (#16)

* Add Comparison Functions for Readability

* Simplify Validation Function

* Fix: Missing text

* Remove spaces from split function

* Fix: Resolve renamed variable

* Validate Installer Modes

* Validate File Extensions with Pattern and Length

* Add Custom Error Class (#18)

* Create function for adding list parameters

* Remove RAW writing

* Remove Empty Manifest Folders

* minItems, maxItems, pattern, variable fix

* Implemented minItems from Schema
* Implemented maxItems from Schema
* Implemented pattern from Schema
* Implemented available Architecture's from Schema
* Implemented available InstallerType's from Schema
* Added $script: to some variables which needs to stay throughout the script

* Add Custom Error Class

* Cleanup Class Constructor

* Additional error messages + cleanup

* Continue adding error messages

* Switched Local formatter to OTBS + Static Strings (Where applicable)

* Fix Spacing

* Remove unused variables from rebase

Co-authored-by: Esco <OfficialEsco@users.noreply.github.com>

* Fix: Check for package before do-until

* Finish Locale Errors

* Fix Spacing Issues

* Make Enums Case Sensitive

* Fix Unique Items + Incorrect Variables

Co-authored-by: Esco <OfficialEsco@users.noreply.github.com>

* Subfolder fix (#21)

* Fix: Subfolder Exists Erroring

* Return

* Write Unused Keys as Comments (#22)

* Write Unused Keys as Comments

* Exclude certain keys from appearing as comments

* Comment only Locale + Version

* Quick Update, Function Reduction, Detect Installer Types, Detect Installer Architectures, and Comments (#27)

* Update YamlCreate.ps1

* auto-detect installer architecture

* Fix https://github.com/Trenly/winget-pkgs/pull/27#issuecomment-921619221

* Fix auto-detection

* Apply suggestions from code review

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

* Move Test + Submit to main

* Update Tools/YamlCreate.ps1

* fix quick-update check

* Reduce input required for quick version update (#4)

* Reduce input required for quick version update

* Fix Product Code

* Don't add null product code if no product code key exists

* improve quick update

* Move prompt outside of Read-Info for clarity

* Move Update Prompt outside of Read-Info for clarity

* Update Messages

* if there are any errors due to this commit, i will revert changes

* Add Comments for code clarity

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

* Fix error from when functions were moved

* Handle Manifest Level Parameters (#34)

* Begin Handling Manifest Level Parameters

* Fix InstallModes

* Add delete manifest functionality (#39)

* Add functionality to manually delete manifests

* Add settings file and script documentation (#38)

* Do not default installer locale

* Add a script settings file with documentation

* Add setting to suppress quick update warning

* Remove accidental file inclusion

* Fix: Update SignatureSha256 in quick update mode (#41)

* Change Settings to allow for negative suppression (#46)

* Change Settings to allow for negative suppression

* Fix sample settings file

* Invalid SandboxTest variable

Co-authored-by: Vedant Mohan Goyal <83997633+vedantmgoyal2009@users.noreply.github.com>

Co-authored-by: Kaleb Luedtke <kaleb.carver.luedtke@jci.com>
Co-authored-by: Esco <OfficialEsco@users.noreply.github.com>
Co-authored-by: Vedant Mohan Goyal <83997633+vedantmgoyal2009@users.noreply.github.com>

* Cleaner references to linked issues (#49)

* Command Line Arguments (#50)

* Add switch for settings

* Allow PackageIdentifier and PackageVersion to be passed as optional parameters

* Add -help switch and documentation

* Settings File Location

* Fix spacing issue [Trenly/winget-pkgs#49] Trenly/winget-pkgs#51

Co-authored-by: Kaleb Luedtke <kaleb.carver.luedtke@jci.com>
Co-authored-by: Vedant Mohan Goyal <83997633+vedantmgoyal2009@users.noreply.github.com>

* Fix Parameter Reading and Condensing(#54)

* Fix: Allow InstallerSwitch keys to be split between installer level and manifest level on a per-key basis

* Fix: Save parameters to variables before removing them from manifest level

* Fix: Sandboxtest not working

* Fix: Prompt for PFN if file does not exist (#55)

* Auto Mode (#58)

* Auto Mode

* Fix for same version

* Keep ProductCodes for .exe files

* Keep ProductCodes for .exe files in Option-2

* Simplify function names, add debug info (#62)

* Fix: Allow autoupdate to update old package versions (#66)

* Make Simple Update automatically detect Sha256, SignatureSha256, and ProductCode without prompts (#61)

* Make Simple Update automatically detect Sha256, SignatureSha256, and ProductCode without prompts

* Add Parameter Mode (#64)

* Add Parameter Mode

* Update YamlCreate.ps1

* Update YamlCreate.md

Co-authored-by: Vedant Mohan Goyal <83997633+vedantmgoyal2009@users.noreply.github.com>

* Use Unique Branch Names (#67)

* Use Unique Branch Names

* Process Branch Names Safely

* Fix: Allow values other than en-US for default locale (#70)

* Made it so git config was only modified for the local repo. (#72)

* Only modify git config for local repo.

* Fixed 2214.

* Support for settings on Linux and macOS (#73)

* Support for settings on Linux and macOS

* Easton's suggestion

* Update YamlCreate.md

* Update Tools/YamlCreate.ps1

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

* Update YamlCreate.ps1

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

* Check for open PR's before submitting (#69)

* Check for open PR's before submitting

* Rebase on c82b39f

* Use API instead of CLI

* Exit when user-choice to terminate

Co-authored-by: Vedant Mohan Goyal <83997633+vedantmgoyal2009@users.noreply.github.com>

Co-authored-by: Vedant Mohan Goyal <83997633+vedantmgoyal2009@users.noreply.github.com>

* Throw when script error (#74)

* Fix: Add locale when converting from singleton (#75)

* Fix: Branch names when deleting (#79)

* Fix: Don't check for PRs on deletion (#80)

* Update PR Content when removing a manifest (#82)

* Update PR Content when removing a manifest

* More realistic character count limits

* Add is:pr to exclude issues from results (#88)

* Ensure file names are valid before saving (#85)

* Ensure file names are valid before saving

* Fix: Catch when content disposition doesn't exist

* Fix UserAgent not following redirects

* Additional Web Request Parameters

* Fix: Min descriptor length + Agent

* Fix: Escape Regex in variables (#91)

* Fix: Only add moniker to defaultLocale (#92)

* Chore: Add references to YamlCreate documentation (#93)

* Typo (#94)

* Chore: Add note to enable settings

Co-authored-by: denelon <denelon@microsoft.com>

* Chore: Remove To-do message

* Update YamlCreate.ps1

* Move integer validation (#99)

* Rename String.Validate -> Test-String (#101)

* Suppress Write-Host warnings from ScriptAnalyzer

* Fix missing constructor parameter

* Rename Write-Locale-Manifests -> Write-LocaleManifest

* Rename Write-Version-Manifest -> Write-VersionManifest

* Rename Write-Installer-Manifest -> Write-InstallerManifest

* Rename Read-WinGet-LocaleManifest -> Read-LocaleMetadata

* Rename Read-WinGet-InstallerManifest -> Read-InstallerMetadata

* Rename Read-Installer-Values-Minimal -> Read-QuickInstallerEntry

* Rename Read-Installer-Values -> Read-InstallerEntry

* Rename Enter-PR-Parameters -> Read-PRBody

* Rename Write-Colors -> Write-MulticolorLine

* Use Named Parameters for AddYamlParameter

* Use Named Parameters for AddYamlListParameter

* Use Named Parameters for PromptInstallerManifestValue

* Support ShouldProcess for removing manifests

* Move Downloading of installer to a separate function

* More function name updates

* Fix: Download Method (#107)

* Check for version when setting proxy (#109)

* Use defaultLocale due to microsoft/winget-cli#1646 resolving microsoft/winget-cli#1595

Co-authored-by: Esco <OfficialEsco@users.noreply.github.com>
Co-authored-by: Vedant Mohan Goyal <83997633+vedantmgoyal2009@users.noreply.github.com>
Co-authored-by: Levvie - she/her <11600822+ItzLevvie@users.noreply.github.com>
Co-authored-by: Kaleb Luedtke <kaleb.carver.luedtke@jci.com>
Co-authored-by: Easton Pillay <easton@planeteaston.com>
Co-authored-by: denelon <denelon@microsoft.com>
2021-11-02 18:13:27 -07:00
Joakim 6866c20338 Removed en-US in links (#22054) 2021-07-23 09:16:14 -07:00
612b2fc615 Docs installers (#16994)
* Create defaultLocale.md

* Update defaultLocale.md

* Update defaultLocale.md

* Create installer.md

* Fix typos

* Update doc/manifest/schema/1.0.0/defaultLocale.md

Co-authored-by: yao-msft <50888816+yao-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.0.0/defaultLocale.md

Co-authored-by: yao-msft <50888816+yao-msft@users.noreply.github.com>

* Update doc/manifest/schema/1.0.0/installer.md

Co-authored-by: yao-msft <50888816+yao-msft@users.noreply.github.com>

* Update installer.md

* Update defaultLocale.md

* Update installer.md

* Update installer.md

* Update defaultLocale.md

* Update version.md

* Update installer.md

* Update doc/manifest/schema/1.0.0/installer.md

Co-authored-by: JohnMcPMS <johnmcp@microsoft.com>

* Update doc/manifest/schema/1.0.0/installer.md

Co-authored-by: JohnMcPMS <johnmcp@microsoft.com>

* Updates based on feedback

Co-authored-by: yao-msft <50888816+yao-msft@users.noreply.github.com>
Co-authored-by: JohnMcPMS <johnmcp@microsoft.com>
2021-06-16 17:27:03 -07:00
denelon e2752835c7 Create defaultLocale.md (#16893)
* Create defaultLocale.md

* Update defaultLocale.md

* Update defaultLocale.md
2021-06-09 14:37:23 -07:00
denelonandLevvie - she/her 8103965498 Authoring (#16864)
* Adding Contributing.md and authoring help

* Update .github/ISSUE_TEMPLATE/Manifest_Request.md

Co-authored-by: Levvie - she/her <11600822+ItzLevvie@users.noreply.github.com>

* Create version.md

Co-authored-by: Levvie - she/her <11600822+ItzLevvie@users.noreply.github.com>
2021-06-09 11:54:02 -07:00