-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify publish task to publish nuget (#2497)
* First stab at moving nuget creation to github * Fix typo * Update CopyToStaging * Update staging bat * More staging update * Remove trailing \ from srcroot * Typo in artifact name * Rework where files were put * remove react-native-windows prefix * missed ship arm * Replace original publish yaml * Remove accidental whitespace
- Loading branch information
1 parent
32b3dc1
commit f6e22af
Showing
2 changed files
with
360 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
@echo off | ||
setlocal | ||
goto :parse_args | ||
|
||
:Usage | ||
echo %~nx0 usage: | ||
echo %~nx0 DestinationRoot | ||
goto :eof | ||
|
||
:parse_args | ||
IF [%1]==[] GOTO :Usage | ||
|
||
set DESTROOT=%~1 | ||
set SRCROOT=%~dp0 | ||
:: Remove trailing \ from srcroot | ||
IF %SRCROOT:~-1%==\ SET SRCROOT=%SRCROOT:~0,-1% | ||
set RNROOT=%~dp0node_modules\react-native | ||
|
||
echo Source root: %SRCROOT% | ||
echo Dest root: %DESTROOT% | ||
echo React-Native root: %RNROOT% | ||
|
||
set COPYCMD=xcopy /s /y /i | ||
|
||
mkdir %DESTROOT% >nul 2>&1 | ||
mkdir %DESTROOT%\inc >nul 2>&1 | ||
mkdir %DESTROOT%\inc\cxxreact >nul 2>&1 | ||
mkdir %DESTROOT%\inc\jschelpers >nul 2>&1 | ||
mkdir %DESTROOT%\inc\jsi >nul 2>&1 | ||
mkdir %DESTROOT%\inc\yoga >nul 2>&1 | ||
mkdir %DESTROOT%\inc\ReactWin32 >nul 2>&1 | ||
mkdir %DESTROOT%\inc\ReactUWP >nul 2>&1 | ||
|
||
%COPYCMD% %RNROOT%\ReactCommon\cxxreact\cxxmodule.h %DESTROOT%\inc\cxxreact | ||
%COPYCMD% %RNROOT%\ReactCommon\cxxreact\Instance.h %DESTROOT%\inc\cxxreact | ||
%COPYCMD% %RNROOT%\ReactCommon\cxxreact\jsargumenthelpers-inl.h %DESTROOT%\inc\cxxreact | ||
%COPYCMD% %RNROOT%\ReactCommon\cxxreact\jsargumenthelpers.h %DESTROOT%\inc\cxxreact | ||
%COPYCMD% %RNROOT%\ReactCommon\cxxreact\JSBigString.h %DESTROOT%\inc\cxxreact | ||
%COPYCMD% %RNROOT%\ReactCommon\cxxreact\JSCExecutor.h %DESTROOT%\inc\cxxreact | ||
%COPYCMD% %RNROOT%\ReactCommon\cxxreact\JSCNativeModules.h %DESTROOT%\inc\cxxreact | ||
%COPYCMD% %RNROOT%\ReactCommon\cxxreact\JSExecutor.h %DESTROOT%\inc\cxxreact | ||
%COPYCMD% %RNROOT%\ReactCommon\cxxreact\MessageQueueThread.h %DESTROOT%\inc\cxxreact | ||
%COPYCMD% %RNROOT%\ReactCommon\cxxreact\ModuleRegistry.h %DESTROOT%\inc\cxxreact | ||
%COPYCMD% %RNROOT%\ReactCommon\cxxreact\NativeToJsBridge.h %DESTROOT%\inc\cxxreact | ||
%COPYCMD% %RNROOT%\ReactCommon\cxxreact\NativeModule.h %DESTROOT%\inc\cxxreact | ||
%COPYCMD% %RNROOT%\ReactCommon\cxxreact\PlatformBundleInfo.h %DESTROOT%\inc\cxxreact | ||
|
||
%COPYCMD% %RNROOT%\ReactCommon\jsi\jsi.h %DESTROOT%\inc\jsi | ||
%COPYCMD% %RNROOT%\ReactCommon\jsi\jsi-inl.h %DESTROOT%\inc\jsi | ||
%COPYCMD% %RNROOT%\ReactCommon\jsi\ScriptStore.h %DESTROOT%\inc\jsi | ||
%COPYCMD% %RNROOT%\ReactCommon\jsi\V8Runtime.h %DESTROOT%\inc\jsi | ||
%COPYCMD% %SRCROOT%\Chakra\ChakraCoreDebugger.h %DESTROOT%\inc\jsi | ||
%COPYCMD% %SRCROOT%\Chakra\ChakraJsiRuntimeArgs.h %DESTROOT%\inc\jsi | ||
%COPYCMD% %SRCROOT%\Chakra\ChakraJsiRuntimeFactory.h %DESTROOT%\inc\jsi | ||
|
||
%COPYCMD% %RNROOT%\ReactCommon\Yoga\Yoga\Yoga.h %DESTROOT%\inc\yoga | ||
%COPYCMD% %RNROOT%\ReactCommon\Yoga\Yoga\YGMacros.h %DESTROOT%\inc\yoga | ||
%COPYCMD% %RNROOT%\ReactCommon\Yoga\Yoga\YGNodeList.h %DESTROOT%\inc\yoga | ||
%COPYCMD% %RNROOT%\ReactCommon\Yoga\Yoga\YGEnums.h %DESTROOT%\inc\yoga | ||
|
||
%COPYCMD% %RNROOT%\Folly %DESTROOT%\inc\Folly | ||
%COPYCMD% %SRCROOT%\stubs %DESTROOT%\inc\stubs | ||
%COPYCMD% %SRCROOT%\Desktop\*.h %DESTROOT%\inc\ReactWin32 | ||
%COPYCMD% %SRCROOT%\ReactWindowsCore\*.h %DESTROOT%\inc\ReactWindowsCore | ||
%COPYCMD% %SRCROOT%\ReactUWP\*.h %DESTROOT%\inc\ReactUWP | ||
%COPYCMD% %SRCROOT%\include %DESTROOT%\inc\include | ||
|
||
%COPYCMD% %SRCROOT%\ReactWin32.nuspec %DESTROOT% | ||
|