Commit Graph
54 Commits
Author SHA1 Message Date
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
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
ce3d6a5f75 Add component governance pipeline (#30274)
* Add component governance pipeline

* Update DevOpsPipelineDefinitions/cg-pipeline.yaml

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

Co-authored-by: denelon <denelon@microsoft.com>
Co-authored-by: JohnMcPMS <johnmcp@microsoft.com>
2021-10-15 16:59:29 -07:00
SpecterShell 758d03c483 Fix: YamlCreate wrong variable names (#29256)
* Fix: YamlCreate not using entered PublisherUrl

* Fix CopyrightUrl typo
2021-10-11 09:40:46 -07:00
Kaleb Luedtke c5d7c3c1ba Throw Specific Exception Types (#29592) 2021-10-06 10:52:08 -07:00
Kaleb Luedtke 3c6d0d6cf2 Fix: Treat warnings as non-fatal (#29312) 2021-10-04 08:29:21 -07:00
Kaleb Luedtke 09d6a36561 Fix: Update VCLibs Hash; Enable Local Manifest Files (#28964) 2021-09-29 14:24:58 -07:00
SpecterShell c41a9965f1 Fix YamlCreate.ps1 (#25672) 2021-09-17 10:30:03 -07:00
Vedant Mohan GoyalandKaleb Luedtke 7926d76b0d [YamlCreate.ps1] Fix #27518 (#27522)
* Fix #27518

* Bump version

* Update YamlCreate.ps1

* Update Tools/YamlCreate.ps1

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

Co-authored-by: Kaleb Luedtke <trenlymc@gmail.com>
2021-09-14 08:23:23 -07:00
Vedant Mohan Goyal d37226fcba Update PRTest.ps1 (#26024) 2021-08-30 09:20:40 -07:00
Vedant Mohan Goyal ca7be8ea51 Correct Variable Name [YamlCreate.ps1] (#23271)
* Correct Variable Name [YamlCreate.ps1]

* Version Update 😁
2021-08-04 11:13:48 -07:00
Esco 7fc079e8e1 [PRTest.ps1] Detached HEAD (#22403)
* [PRTest.ps1] Detached HEAD

* Added check for Git

* Added -SkipManifestValidation
2021-07-27 12:21:48 -07:00
Joakim 6866c20338 Removed en-US in links (#22054) 2021-07-23 09:16:14 -07:00
Vedant Mohan Goyal 36705a114e Update YamlCreate.ps1 (Listen For Keypress) (#21258)
* Update YamlCreate.ps1

* Update YamlCreate.ps1

* Revert Commit a168868

Undo Commit Message Modification

* Made more changes

Fixed the following things-
- Needs more spacing
- UpgradeBehaviour ends up on the same line as the Scope input field
- UpgradeBehaviour got ignored

Added Listen for keypress during Scope, UpgradeBehavior, AnotherInstaller

* Fixed Looping after `InstallModes`

* Listen For Keypress at `Save to disk`

Add Listen For Keypress at "Save to disk?" Prompt.

* Listen for keypress at `Sandbox Test` and `Submit PR?`

* Fix Looping using switch and default

* Fixed function calling at `AnotherInstaller`

* Spacing added

* Metadata: Zint.Zint version 2.4.2.0

* Revert "Metadata: Zint.Zint version 2.4.2.0"

This reverts commit d05fae43b781ca876f9271a167f66f260d688640.
2021-07-19 09:56:17 -07:00
Kaleb Luedtke 983baaae0a Fix: Properly select last version when Alpha/Beta/Dev versions are present (#21216)
* Fix: Replace aliases with full commands to reduce IDE warnings

* Extract proper version based on YML file existance

* Rebase on Master

* Cleanup code
2021-07-16 15:22:09 -07:00
Kaleb LuedtkeandEsco e111163e79 Fix: Incorrect joinder of commands causing validation errors (#21228)
* Fix: Incorrect joinder of commands causing validation errors

* Update Tools/YamlCreate.ps1

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

Co-authored-by: Esco <OfficialEsco@users.noreply.github.com>
2021-07-16 15:21:43 -07:00
Kaleb Luedtke 9066583afa Allow Manual Entering of SHA256 (#21209) 2021-07-16 11:38:39 -07:00
Kaleb Luedtke 7c488af37f Listen for keypresses (#21143)
* Have YamlCreate listen for keypresses in Show-OptionMenu

* Improve readabilityby creating Write-Colors function

* Rebase on Master
2021-07-16 11:37:48 -07:00
Vedant Mohan Goyal d194f35e4f PR title modification for a better look (#21213)
* Commit message modification for a better look

* Update YamlCreate.ps1
2021-07-16 11:29:13 -07:00
Esco 859f5da9df YamlCreate Singleton hotfix (#21208)
Resolves #21207
@denelon ASAP 😬
2021-07-16 09:54:27 -07:00
Esco fd2de12b44 YamlCreate.ps1 Sandbox and Git (#21172)
* Sandbox

* Git

* SandboxTest default=yes

* Optional PR template path

* Update YamlCreate.ps1

* Update Telegram.TelegramDesktop version 2.8.9

* Revert "Update Telegram.TelegramDesktop version 2.8.9"

This reverts commit c966ad40ce8a14e6d8053c6b3f9a4ec68947945d.

* Workaround

* Loop causes issues

* Revert broken part

* Ugly workaround

* Default Installer Locale
2021-07-16 08:09:08 -07:00
Esco 345d809363 YamlCreate Fixes (#20359)
* Better removal of first # character

* Fixed UTF8 with BOM issue

@KevinLaMS didn't stop me >:o

* Added version number to ScriptHeader

palenshus was right about the header thing 🙄

* Better Splitting method

* InstallModes prompt

* Swapped -ge to -gt

* Respects MinimumOSVersion field

* Unicode Locale support

* Capitalize the L in defaultLocale

* Fixed import encoding for PS5

* Grammar from #20438

* Prompt + Description

Added better Prompt
Tweaked some Descriptions
2021-07-13 12:53:19 -07:00
Easton Pillay 74b3f60e33 Add PRTest.ps1. (#20105) 2021-07-07 08:26:21 -07:00
Joakim 9b5f971308 Fixed SandboxTest.ps1 after winget-cli update (#18812) 2021-06-25 15:25:28 -07:00
Esco a2652becde Small YamlCreate.ps1 update (#17571)
* Standardized Manifest

* Rearranged the installer metadata
* Removed spaces
* Added # Created using YamlCreate.ps1

* Added local save

* Reworked SaveOption

* ScriptHeader

Just for @palenshus
2021-06-15 17:18:26 -07:00
Esco 7f213c1690 YamlCreate small tweaks (#11753)
* Added WinGet Validate

* Added Natural sorting

* Fixed support for hyphen

* Edited max trim combines

* Ignore PackageIdentifier line

Issue spotted when updating the "Microsoft.Office" manifest

* Out-File Fix

* Fixed Split for Powershell 5

* Fixed tags split for NewLocale

* Fixed NewLocale max Tags split

* Added more InstallerTypes
2021-05-04 14:21:07 -07:00
Felipe Santosandchausner 9619e1aa83 Create SandboxTest script (#827)
* Create SandboxTest script

* Add missing appx dependencies

* Clear temp folder

* Validate manifest before pushing to sandbox

* Fix invalid character in Sandbox.ps1

The dash character in -ExecutionPolicy was a special character which broke the command.

* Download dependencies on the fly

* remove vscode launch file

* Add newline in gitignore

* Fix when there is no temp folder

* Add Test in Sandbox to README

* Add some comments and enhance some messages

* Properly accept mandatory parameter

* Check if Windows Sandbox exist or not

* Fix Sandbox install snippet and typo

* Fix wrong conflict resolution in README

* Upgrade WinGet to v0.1.41821-preview

* Rewrite the whole script

Adding some cool features such as:
- Specify folder to mount (default to current)
- Make Manifest optional, so we can use the script to just start the
  Sandbox and install WinGet
- Add optional Script parameter, to specify which script block to run
  after all the steps inside the Sandbox
- Automatically refresh environment variables after installing the
  Manifest, and leave the function Update-Environment available for the
  users
- Use a temporary folder on system's temp directory, thus deleting the
  .gitignore
- Make Powershell open maximized and without splash messages
- Improve overall UX both in local machine and in the Sandbox
- Close Sandbox automatically if needed
- Upgrade WinGet to latest version

Most of the refactor came from my PR at
https://github.com/chocolatey-community/chocolatey-coreteampackages/pull/1512

* Add tip for Update-Environment

* Fix relative paths on map folder

* Copy the manifest instead of installing from the source

* Fix call without manifest param and enhance logs

* Use VCLibs UWPDesktop from official source and update winget

* Add some missing new lines

* Fetch latest WinGet release automatically

* Add -SkipManifestValidation switch and fix checksum

* Fix TLS issues, handle PowerShell 7, remove unneeded VCLibs dep and fix manifest as folder

* Restore file/folder check for manifest

* Change checksum output filename

* Update Update-EnvironmentVariables function

Co-authored-by: chausner <chausner@users.noreply.github.com>
2021-05-03 11:36:36 -07:00
Esco a03ca27cf5 InstallerSwitches Hotfix (#11576)
Fixed InstallerSwitches getting commented out..
2021-04-26 17:37:28 -07:00
Esco 0b2c736456 YamlCreate v3 (#10746)
* YamlCreate v3

* Exclude current version

Exclude current version if you messed up and wanted to restart the script

* Added InstallerSuccessCodes

+ Added InstallerSuccessCodes
+ ProductCode hint

* Copypaste Typo

* InstallerSuccessCodes kept getting commented out..

* Fixed forgotten quotes in ProductCode

* Revert "Exclude current version"

This reverts commit bc7da021805e6e19d9978a1f4dabd277a008bec0.

* Hotfix for ProductCode not getting commeted out

* Now displays which lastversion is selected

* Replaced Comment out method
2021-04-21 08:52:08 -07:00
Easton Pillay 57b27f276a Fixed Join-Path in YamlCreate.ps1. (#10291) 2021-04-13 18:19:50 -07:00
Esco d01d5decca Update YamlCreate to Manifest v1.0.0 (#9583)
* Add NZXT CAM v4.22.0

* Update YamlCreate to Manifest v1.0.0

* Hotfix

+ Fixed some strong script breaking typo last minute changes on ShortDescription...
+ YamlCreate can now be used anywhere

* Revert "Add NZXT CAM v4.22.0"

This reverts commit c181784da181c4601f4df36f375e9fc9e99904f0.

* Revert "Revert "Add NZXT CAM v4.22.0""

This reverts commit 16c5afba3e288aba992262665b29fb3fe602e033.

* Revert "Revert "Revert "Add NZXT CAM v4.22.0"""

This reverts commit c0d5f8d6032dea1b4f3e0b1534ead60d6598d4f7.

* Update YamlCreate.ps1

+ Select menu
+ Function to only update version number, download url and hash

* Added Prompt's for everything

* Added support for new Locale

* Fixed Tags miss value and added Extensions, Protocols and Commands

* Moved Enter the URL to after old manifest check

* Proper Tag, Protocol, FileExtension and Command limit

* Increased some value limits

* Update MullvadVPN manifest

* Revert "Update MullvadVPN manifest"

This reverts commit cc92e4993f4642712d33c44b033a413e3477f5fa.

* Small Tweaks

* Added Encoding?

* Added Encoding for Update and NewLocale

* Added ProductCode variable

* Added ProductCode to Update switch

* Moved Publisher and PackageName

* Added Custom switch

* Custom variable hotfix

* Fixed another tiny bug..
2021-04-06 13:35:16 -07:00
Chris Galvan ec0ace5e18 feat: removing spaces from folder name in yamlcreate (#5066) 2020-12-09 11:59:02 -08:00
Sebastian NandSebastian Neumann c47cc808f2 Feature/revise manifest creation script (#3241)
* Make script PSv5 compatible again, apply some PS best practices

* this commit removes PowerShell Core only features that were introduced with #2378 to ensure compatibility with PSv5
* adds comment based help
* use consistently cased Cmdlet and variable names
* improves input data related error handling
* adds PS code regions for automatic code folding
* automates the creation of the manifest file at the correct destination path
* corrects the use of Write-Host and Write-Output

Fixes #3061

* Adhere to YAML formatting conventions

* Use cross-platform new line handling

Co-authored-by: Sebastian Neumann <sebastian.neumann@experienceone.com>
2020-08-27 07:38:43 -07:00
mizutoki79 6f4e05f75e update yaml create script (#2378)
* Refactor format

* Add colon writing metadata

* Change file location to absolute

* Supress extra output

* support running any location
2020-07-28 08:46:05 -07:00
JohnMcPMS a28c5e7cac Grab the current directory and use it to create a full path to the output file (#2379) 2020-07-08 11:17:09 -07:00
JohnMcPMS b639fe30f8 Port and merge #462 as its fork was deleted (#2196) 2020-06-30 11:20:06 -07:00