Граф коммитов

1003 Коммитов

Автор SHA1 Сообщение Дата
Chacón 34dc9941d7
Msix.Utils - Make reading of bundle optional packages happen only when needed (#464) 2021-06-30 16:28:48 -07:00
stephenk-msft 8d6b8fba9e
Handle long file paths during CIM creation (#463) 2021-06-30 09:27:05 -07:00
Ruben Guerrero 24d4ab1c04
Enable pipelines (#461) 2021-06-16 12:32:41 -07:00
Sayan Chaliha 0c8a78f9b1
Invalid Memory Access in SignatureValidator (#453)
* Invalid Memory Access in SignatureValidator

Problem:
* SignatureValidator::IsStoreOrigin() tries to read X.509 extensions
to determine if the origin of the signature matches the Windows Store OID.
* Extension data is converted from a raw buffer to an std::string for
comparision.
* The raw buffer is not null-terminated, and therefore, running
std::strlen() on it causes invalid memory access.
* This invalid access is caught by ASAN on macOS.

Solution:
* Null-terminate the raw buffer before trying to build an std::string
from it.

Tests:
* Ran app test suite that uses libmsix.dylib with ASAN on. No crashes
were reported.

* Invalid Memory Access in SignatureValidator

Problem:
* As @JohnMcPMS pointed out, writing "" with 1 byte size is null termination.
* A better solution would be to use bptr->length and avoid writing the null
byte altogether.

Tests:
* Ran app test suite that uses libmsix.dylib with ASAN on. No crashes
were reported.

Co-authored-by: Sayan Chaliha <sachalih@microsoft.com>
2021-06-08 10:53:39 -07:00
Union Palenshus 5883559c90
Adding property on bundle object containing metadata about child packages (#449)
Adds new property on AppxBundleMetadata: ChildAppxPackages. This replaces the now [Obsolete] InternalAppxPackagesRelativePaths, as it has the file paths but also the metadata unique to each child package.
2021-05-13 12:06:17 -07:00
stephenk-msft d923b66fc0
Updated ApplyACls (#448) 2021-05-07 14:52:00 -07:00
Luis Chacón 4f7206f609
Bump DevOps Extension dependencies' version (#445) 2021-04-14 17:34:08 -07:00
rhuang-msft 3fbd28851b
Added option to AppxFactory to create package writer with file hash enabled (#443)
* Added option to AppxFactory to create package writer with file hash enabled in block map xml

* Changed PCSTR to LPCSTR as PCSTR is not defined in Linux and MacOS. Also updated test data about expected block map xml size

* Added CoCreateAppxFactoryWithOptions and CoCreateAppxFactoryWithHeapAndOptions to export list
2021-04-13 15:57:40 -07:00
dependabot[bot] c8af99506f
Bump y18n from 4.0.0 to 4.0.1 in /tools/pipelines-tasks (#441)
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-01 10:30:18 -07:00
Ruben Guerrero 3c058bf730
Validate timestamp in Windows (#438)
* Validate timestamp in Windows

* PR comments
2021-03-18 14:24:41 -07:00
rhuang-msft 874fce5265
Added latest Appx manifest schemas to MSIX SDK (#433) 2021-03-10 13:32:24 -08:00
Luis Chacón 28bf205c5c
Update localized strings (#428) 2021-03-03 13:03:52 -08:00
rhuang-msft f7e34e2edb
User/rhuang msft/add file hash to block map (#429)
* Test pull request

* Changed block map xml writer to add <FileHash> elements to BlockMap XML

* Update tests to reflect the change of block map xml and skip schema block map validation for Xerces parser

* Fix delete void pointer issue that some compilers do not allow

* Fixed a typo
2021-03-01 14:10:09 -08:00
Luis Chacón eca527a113
Re-target Msix.Utils package to .NET Standard 2.0 (#427) 2021-02-23 12:25:40 -08:00
Luis Chacón 3c41e74d4c
Add Azure Key Vault integration to signing AzDO task (#426) 2021-02-22 12:55:43 -08:00
Mark Ingram 5bdf262713
Fixed failure to link due to missing reference to windowsexports.def (fixes #413) (#414)
Co-authored-by: Mark Ingram <mingram@serif.com>
2021-02-19 16:34:55 -08:00
Ryan Fu 238b20233e
Remove TELEMETRYEVENTSOURCE_PUBLIC flag to resolve namespace conflict with external TelemetryEventSource.cs (#424) 2021-02-18 15:18:02 -08:00
Luis Chacón 7bb7415999
Add yaml pipeline for building the VSIX for MSIX Packaging Extension (#418) 2021-02-18 12:21:17 -08:00
Luis Chacón 533474b989
Quote script paths in extension tasks (#419) 2021-02-10 16:11:21 -08:00
Sayan Chaliha c339995952
OpenSSL Thread Safety (#412)
* OpenSSL is not thread-safe even when compiled with OPENSSL_THREADS
* Library initialization needs to be called only once and
	* Needs to set a thread ID callback
	* Needs to set locking callback
* OPENSSL_add_all_algorithms() should be called only once in an app

Co-authored-by: Sayan Chaliha <sachalih@microsoft.com>
2021-02-04 08:40:49 -08:00
jyvenugo 36b3f17f41
Installation fails if certificate contains extended ascii or non alpha-numeric character (#401)
* Accept non alphanumeric chars as publisher subject

* Restore Unicodeconversion file

* App now installs

* Remove unwanted lines
2021-01-26 13:51:16 -08:00
Luis Chacón d2974744e8
Remove task input groups (#407) 2021-01-19 11:19:02 -08:00
Luis Chacón e68447bdb3
Use attributes instead of elements on generated .appinstaller files (#406) 2021-01-07 13:14:50 -08:00
Luis Chacón a1a889bc8c
Set ExecutionPolicy when calling powershell in pipeline tasks (#403)
The pipeline tasks for packaging and for creating a VHDX for app attach call a helper PS script, which may be blocked in certain environments due to the ExecutionPolicy. To allow the scripts to run, set the execution policy when calling powershell.exe.

Also removed files regarding release signing configuration that are no longer needed with the new signing method, and added debug configuration for the pipelines tasks that was missing after the move from the private repo.
2021-01-07 13:14:20 -08:00
Union Palenshus f353d1a5f1
Adding AppxMetadata constructor that takes an IStream (#404) 2021-01-07 09:46:38 -08:00
jyvenugo fa0bd822cf
Parse mapping file passed to makemsix (#395)
* Mapping file parser

* add error cases to section reading

* Parse mappings in mapping file

* Handle errors in mapping file

* Mapping file parses correctly now

* Create flat bundle from mapping file works now

* AddExternalPackageReferenceFromManifest implemented

* Write to bundle manifest file, added validations

* Verified that AppxBundleManifest gets created

* Minor changes

* Build error

* Implement -mo param

* Changes to manifest only implementation

* Mo bundle manifest creation now works

* Skip package validation in AppxPackageObject.cpp

* Disable cmake_min_required warning

* Cast for mac build failure

* mac build failure address

* Check if build passes

* Trigger build

* Check if build passes

* Cast to char16_t

* missing bracket

* Casts away qualifiers const_cast

* Cast to const char16_t

* PR comments
2020-12-10 15:20:45 -08:00
Ruben Guerrero f02cb7123d
Add support file (#398) 2020-12-07 12:48:06 -08:00
Luis Chacón 5b6d766f4d
Add overview.md file for ADO tasks extension (#394)
Adding overview.md file to show as description content in the marketplace for the packaging tasks extension. The content was copied from the docs for this: https://github.com/microsoftdocs/msix-docs/blob/master/msix-src/desktop/msix-packaging-extension.md
2020-11-10 14:51:42 -08:00
jyvenugo eb2a53ca25
Implement flat bundle creation (#389)
* Attempt to create bundle method

* ProcessCommonOptions method

* Pass flags

* Update

* Create appxbundlefactory and bundlewriter

* Added interfaces to implement

* edit bundle options

* Remove comments

* Create vector of packages to write to bundle manifest

* Create bundle manifest bundle element

* Write Bundle Manifest Elements

* Add AppxBundleManifest, BlockMap, contenttype.xml to zip

* Validations to store fields into manifest

* Write Resources and Dependencies to Bundle Manifest

* Fetches correct value for resources and tdfs

* Created AppxBundleWriter and BundleWriterHelper files

* Writer verion to manifest, address PR comments

* process common and input options

* Use stdstrin instead of wchar

* Address PR comments

* Removed closeinternal from AppxBundleWriter.cpp

* Use exceptions instead of hresult

* Implement AppxManifestReader->GetQualifiedResources

* Write resources to bundle manifest

* Write correct namespaces to manifest file

* Code review comments

* Resolve build on other platforms

* Add packbundle to if MSIX_PACK

* Build should pass now

* Remove ectra qualification for build to pass

* add to msix_pack

* STATFLAG_NONAME error

* Resolve compiler error

* UINT64 and std::uint64 compiler error

* Use std::time instead of systemtime

* Build break

* resolve UINT64 ios compiler error

* Comment out arm64 mac jobs- known config issue

* Mac pipeline failure

* Remove Text data structure as per PR feedback

* gitignore, move zlib file, update filename to versionhelpers

* Resolve build

* Remove thumbs.db file
2020-11-06 11:20:41 -08:00
stephenk-msft 96f2ffc9ac
Allow users to mount CIM with image path instead of volume id (#391)
* Allow users to mount CIM with image path instead of volume id

* Uploaded updated CreateCIM binaries
2020-11-04 16:17:18 -08:00
Luis Chacón 201a86f9a0
Fix output path in localization pipeline for ADO tasks (#388) 2020-10-14 15:08:52 -07:00
stephenk-msft e00e737ba5
Add ability to create VHD/VHDX files and unpack packages to them (#379)
* Added ability to create, mount, and unmount VHDs

* Refactoring; Accept -vhdSize on VHD creation; Retrieve drive letter on mount

* Handle vhdSize values

* Enabled creation of VHDX files

* Updated help strings

* Delete broken VHD on VHD creation failures

* Don't delete vhd on vhd creation failure if failure is ERROR_FILE_EXISTS

* Adjusted min/max vhd siez

* Expose option to mount VHD as RO or RW.

* Modify func signatures in VHDProvider

* Added updated CreateCIM and WVDUtilities binaries
2020-10-04 18:41:13 -07:00
Luis Chacón 55cea3902c
Fix signing configuration for pipelines tasks and add localized strings (#385) 2020-09-28 11:54:29 -07:00
Luis Chacón bdb5d41520
Add project for Azure Pipelines Tasks for MSIX (#384) 2020-09-24 16:03:32 -07:00
Ruben Guerrero a967283997
MSIX Utils (#382)
* warning : SA1201 : CSharp.Ordering : All classes must be placed after all methods.

* Add working directory to ProcessRunnerBase
2020-09-18 12:43:25 -07:00
stephenk-msft de8184bf58
Added ability to create CIM files and unpack packages to them (#377)
* Added ability to create CIM files and add unpacked packages to them

* Enabled mounting/unmounting of CIM files

* Updated help strings

* Move error output for individual packages to a single batch at end of execution

* Handle failures creating temp directory

* Addressed code review comments

* Removed lines from resource.h

* set applyacls according to user specfication

* Removed commented code. Output on createcim.dll failure

* Added CreateCIM binaries
2020-08-22 17:35:32 -07:00
Luis Chacón 2165b6702f
Remove unused NetCore version of Utils project (#376) 2020-08-18 11:17:18 -07:00
Ruben Guerrero ce2415b3b0
Add files to linux artifacts (#375) 2020-08-14 14:59:49 -07:00
Ruben Guerrero 84c00d0497
macOS universal binaries (#374) 2020-08-14 12:20:21 -07:00
Ruben Guerrero 4ed5e8e311
Use windows-latests (#373) 2020-08-12 17:36:26 -07:00
Ruben Guerrero f7db347d95
Adding macOS Sillicon to pipelines (#370) 2020-08-12 17:36:08 -07:00
Luis Chacón c9fd0b253f
Add missing required NuGet properties (#372) 2020-08-12 13:35:13 -07:00
Luis Chacón fdcfc05755
Change Utils namespace to match NuGet package name (#369)
Changing the namespace for the Utils library from Microsoft.Packaging.Utils to Microsoft.Msix.Utils to match what will be the published NuGet package name.
2020-08-11 15:32:38 -07:00
Luis Chacón 84e6718121
Add configuration files to create Utils NuGet package (#367)
All of this is to be consumed by the release pipeline.
* Added configuration for signing.
* Added build properties to control major/minor version with recommended semantic versioning. Patch version is set by the pipeline.
* Added .nuspec file to indicate package license.
* Updated AssemblyInfo with required information.
2020-08-07 17:04:25 -07:00
Luis Chacón 09165d7866
Add Azure CI Pipeline for Utils library (#364)
Adding a YAML definition for a a CI pipeline for the Utils library and updating the CODEOWNERS file for the library.
2020-08-03 12:39:27 -07:00
dianmsft 6ec570d689
Update README.md (#353)
Based on an issue, updated the README - Overview to make it clear that MSIX Core project is in the SDK. 

https://github.com/microsoft/msix-packaging/issues/350
2020-07-30 10:50:25 -07:00
Luis Chacón 622be1d2e7
Add Utils library project (#358)
Open source Utils source code from the private Windows repo to MSIX SDK repo so that it is available for the Windows community to collaborate/contribute to. This supports our org-wide goal to open source as much of our code as we can. This will also enable us to take other services open source.
2020-07-29 14:19:56 -07:00
Ruben Guerrero e40a7589ca
Update schemas (#362) 2020-07-29 10:48:11 -07:00
Ruben Guerrero ebad9ca20f
Fix - Makemsix pack fails when directory given ends with "\" (#361) 2020-07-28 14:14:05 -07:00
Ruben Guerrero da77ac2910
Fix [Content Types].xml creation for files without an extension (#360) 2020-07-28 13:22:44 -07:00