Commit Graph

5 Commits

Author SHA1 Message Date
Eric Rozell
63afcba0bb fix(NuGet): align NuGet dependencies with react-native-windows (#1209)
Switching to .csproj-based NuGet package references and updating to match the current dependencies for react-native-windows.

Towards Microsoft/react-native-windows#1644
2018-02-21 13:42:30 +03:00
Meng-Yuan Huang
c689f764c7 Fix a GetFileAsync exception due to that fileNameToDelete uses forward slash characters as path separator. (#1126) 2017-12-28 23:52:11 -08:00
Alexander Bodalevsky
6a1d1ffcac WPF:WINDOWS Added ability to update application installed in Program Files folder (#813)
* Updated Windows Example

* Organized usings

* Fix for update application in write protected folder

* Typo fixed

* Examples updated to RNW 0.43.0

* Fixed Warning  CS0108
2017-06-16 13:52:06 +03:00
ymusiychuk-lohika
72cb03df39 Ensure that unzipped folder does not exist before unzip on Windows (#732)
* Ensure that Unzipped folder does not exists before unzip

* Updated comment

* Renamed InitUnzippedFolderAsync -> CreateUnzippedFolderAsync, getFolder -> existingFolder
2017-03-02 12:12:07 -08:00
Alexander Bodalevsky
be96f07eda Added React Native Windows dotNet46 support (#684)
Added support react-native-windows dotNet
Added example for react-native-windows UWP based
Added example for react-native-windows dotNet based

Project structure:

CodePush.Shared - shared code between UWP and dotNet
CodePush - UWP specific code
CodePush.Net46 - dotNet specific code

For UWP solution it needs to be added the following projects:

CodePush.Shared
CodePush
For dotNet solution it needs to be added the following projects:

CodePush.Shared
CodePush.Net46
Examples:

Examples\CodePushDemoApp\windows\CodePushDemoApp.sln the solution contains both examples (UWP and dotNet).

Notes

Example for ARM configuration has not been tested. Since there is no changes in UWP part of implementation, there is low risk of failure.

In this implementation we tried to reuse UWP library as much as possible. The following issues are relevant for both platforms:

ZipFile.ExtractToDirectory is not reliable and throws exception if:
folder exists already
path is too long (> 250 chars)
Un-zipping is quite long operation. Does it make sense for async?
await UpdateUtils.UnzipBundleAsync(downloadFile.Path, unzippedFolder.Path);
2017-02-13 16:23:20 -08:00