-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Do not use manager for automatic restore the remote package.
- Loading branch information
Showing
12 changed files
with
193 additions
and
161 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
@echo off & echo Incomplete script. Compile it first via 'build.bat' - github.com/3F/DllExport 1>&2 & exit /B 1 | ||
|
||
:: Copyright (c) 2016-2020 Denis Kuzmin [ [email protected] ] | ||
:: Copyright (c) 2016-2021 Denis Kuzmin [[email protected]] github/3F | ||
:: https://github.com/3F/DllExport | ||
|
||
|
||
|
@@ -83,6 +83,11 @@ set "buildInfoFile=build_info.txt" | |
set "fManager=!dpnx0!" | ||
set "wRootPath=!cd!" | ||
|
||
:: - | ||
:: bitwise parameters | ||
|
||
set /a wDxpOpt=0 | ||
|
||
:: - | ||
|
||
set "dxpDebug=" | ||
|
@@ -121,7 +126,7 @@ goto commands | |
echo. | ||
@echo .NET DllExport $-version-$ | ||
@echo Copyright (c) 2009-2015 Robert Giesecke | ||
@echo Copyright (c) 2016-2020 Denis Kuzmin [ x-3F@outlook.com ] GitHub/3F | ||
@echo Copyright (c) 2016-2021 Denis Kuzmin ^<x-3F@outlook.com^> github/3F | ||
echo. | ||
echo MIT License | ||
@echo https://github.com/3F/DllExport | ||
|
@@ -131,60 +136,61 @@ echo. | |
@echo Usage: DllExport [args to DllExport] [args to GetNuTool] [args to hMSBuild] | ||
echo ------ | ||
echo. | ||
echo Arguments: | ||
echo ---------- | ||
echo -action {type} - Specified action for Wizard. Where {type}: | ||
echo * Configure - To configure DllExport for specific projects. | ||
echo * Update - To update pkg reference for already configured projects. | ||
echo * Restore - To restore configured DllExport. | ||
echo * Export - To export configured projects data. | ||
echo * Recover - To re-configure projects via predefined/exported data. | ||
echo * Unset - To unset all data from specified projects. | ||
echo * Upgrade - Aggregates an Update action with additions for upgrading. | ||
echo Arguments | ||
echo --------- | ||
echo -action {type} - Specified action for Wizard. Where {type}: | ||
echo * Configure - To configure DllExport for specific projects. | ||
echo * Update - To update pkg reference for already configured projects. | ||
echo * Restore - To restore configured DllExport. | ||
echo * Export - To export configured projects data. | ||
echo * Recover - To re-configure projects via predefined/exported data. | ||
echo * Unset - To unset all data from specified projects. | ||
echo * Upgrade - Aggregates an Update action with additions for upgrading. | ||
echo. | ||
echo -sln-dir {path} - Path to directory with .sln files to be processed. | ||
echo -sln-file {path} - Optional predefined .sln file to be processed. | ||
echo -metalib {path} - Relative path to meta library. | ||
echo -metacor {path} - Relative path to meta core library. | ||
echo -dxp-target {path} - Relative path to entrypoint wrapper of the main core. | ||
echo -dxp-version {num} - Specific version of DllExport. Where {num}: | ||
echo * Versions: 1.6.6 ... | ||
echo * Keywords: | ||
echo `actual` - Unspecified local/latest remote version; | ||
echo ( Only if you know what you are doing ) | ||
echo -sln-dir {path} - Path to directory with .sln files to be processed. | ||
echo -sln-file {path} - Optional predefined .sln file to be processed. | ||
echo -metalib {path} - Relative path to meta library. | ||
echo -metacor {path} - Relative path to meta core library. | ||
echo -dxp-target {path} - Relative path to entrypoint wrapper of the main core. | ||
echo -dxp-version {num} - Specific version of DllExport. Where {num}: | ||
echo * Versions: 1.7.3 ... | ||
echo * Keywords: | ||
echo `actual` - Unspecified local/latest remote version; | ||
echo ( Only if you know what you are doing ) | ||
echo. | ||
echo -msb {path} - Full path to specific msbuild. | ||
echo -hMSBuild {args} - Access to hMSBuild tool (packed) https://github.com/3F/hMSBuild | ||
echo -packages {path} - A common directory for packages. | ||
echo -server {url} - Url for searching remote packages. | ||
echo -proxy {cfg} - To use proxy. The format: [usr[:pwd]@]host[:port] | ||
echo -pkg-link {uri} - Direct link to package from the source via specified URI. | ||
echo -force - Aggressive behavior, e.g. like removing pkg when updating. | ||
echo -mgr-up - Updates this manager to version from '-dxp-version'. | ||
echo -wz-target {path} - Relative path to entrypoint wrapper of the main wizard. | ||
echo -pe-exp-list {module} - To list all available exports from PE32/PE32+ module. | ||
echo -eng - Try to use english language for all build messages. | ||
echo -GetNuTool {args} - Access to GetNuTool (integrated) https://github.com/3F/GetNuTool | ||
echo -debug - To show additional information. | ||
echo -version - Displays version for which (together with) it was compiled. | ||
echo -build-info - Displays actual build information from selected DllExport. | ||
echo -help - Displays this help. Aliases: -help -h | ||
echo -msb {path} - Full path to specific msbuild. | ||
echo -hMSBuild {args} - Access to hMSBuild tool (packed) https://github.com/3F/hMSBuild | ||
echo -packages {path} - A common directory for packages. | ||
echo -server {url} - Url for searching remote packages. | ||
echo -proxy {cfg} - To use proxy. The format: [usr[:pwd]@]host[:port] | ||
echo -pkg-link {uri} - Direct link to package from the source via specified URI. | ||
echo -force - Aggressive behavior, e.g. like removing pkg when updating. | ||
echo -no-mgr - Do not use %~nx0 for automatic restore the remote package. | ||
echo -mgr-up - Updates %~nx0 to version from '-dxp-version'. | ||
echo -wz-target {path} - Relative path to entrypoint wrapper of the main wizard. | ||
echo -pe-exp-list {module} - To list all available exports from PE32/PE32+ module. | ||
echo -eng - Try to use english language for all build messages. | ||
echo -GetNuTool {args} - Access to GetNuTool (integrated) https://github.com/3F/GetNuTool | ||
echo -debug - To show additional information. | ||
echo -version - Displays version for which (together with) it was compiled. | ||
echo -build-info - Displays actual build information from selected DllExport. | ||
echo -help - Displays this help. Aliases: -help -h | ||
echo. | ||
echo Flags: | ||
echo ------ | ||
echo Flags | ||
echo ----- | ||
echo __p_call - To use the call-type logic when invoking %~nx0 | ||
echo. | ||
echo Samples: | ||
echo -------- | ||
echo DllExport -action Configure -force -pkg-link http://host/v1.6.6.nupkg | ||
echo DllExport -action Restore -sln-file "Conari.sln" | ||
echo DllExport -proxy guest:[email protected]:7428 -action Configure | ||
echo Samples | ||
echo ------- | ||
echo DllExport -action Configure -force -pkg-link http://host/v1.7.3.nupkg | ||
echo DllExport -action Restore -sln-file "Conari.sln" | ||
echo DllExport -proxy guest:[email protected]:7428 -action Configure | ||
echo. | ||
echo DllExport -mgr-up -dxp-version 1.6.6 | ||
echo DllExport -action Upgrade -dxp-version 1.6.6 | ||
echo DllExport -mgr-up -dxp-version 1.7.3 | ||
echo DllExport -action Upgrade -dxp-version 1.7.3 | ||
echo. | ||
echo DllExport -GetNuTool /p:ngpackages="Conari;regXwild" | ||
echo DllExport -pe-exp-list bin\Debug\regXwild.dll | ||
echo DllExport -GetNuTool /p:ngpackages="Conari;regXwild" | ||
echo DllExport -pe-exp-list bin\Debug\regXwild.dll | ||
|
||
goto endpoint | ||
|
||
|
@@ -279,6 +285,11 @@ set key=!arg[%idx%]! | |
|
||
set kForce=1 | ||
|
||
goto continue | ||
) else if [!key!]==[-no-mgr] ( | ||
|
||
set /a wDxpOpt^|=1 | ||
|
||
goto continue | ||
) else if [!key!]==[-mgr-up] ( | ||
|
||
|
@@ -347,6 +358,7 @@ call :dbgprint "-metalib = " wMetaLib | |
call :dbgprint "-metacor = " wMetaCor | ||
call :dbgprint "-dxp-target = " wDxpTarget | ||
call :dbgprint "-wz-target = " tWizard | ||
call :dbgprint "#opt " wDxpOpt | ||
|
||
if defined dxpVersion ( | ||
if "!dxpVersion!"=="actual" ( | ||
|
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 |
---|---|---|
|
@@ -159,11 +159,18 @@ set appl=%app% -pkg-link "..\..\DllExport.$version$.nupkg" | |
setlocal | ||
echo Test case 16: checking for -dxp-version, -server, -proxy & set "%flagName%=16" | ||
|
||
call %mgrFile% -action Default -dxp-version 1.6.5 | ||
call %app% -action Default -dxp-version 1.6.5 -server "https://127.0.0.1:8082/" -proxy "guest:[email protected]:7428" | ||
call %mgrFile% -action Default -dxp-version 1.7.3 | ||
call %app% -action Default -dxp-version 1.7.3 -server "https://127.0.0.1:8082/" -proxy "guest:[email protected]:7428" | ||
:: -pe-exp-list "bin\Debug\regXwild.dll" | ||
|
||
endlocal | ||
|
||
setlocal | ||
echo Test case 17: checking for -no-mgr flag & set "%flagName%=17" | ||
|
||
call %appl% -no-mgr | ||
|
||
endlocal | ||
|
||
|
||
endlocal |
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
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,39 @@ | ||
/* | ||
* The MIT License (MIT) | ||
* | ||
* Copyright (c) 2016-2021 Denis Kuzmin <[email protected]> github/3F | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in | ||
* all copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
* THE SOFTWARE. | ||
*/ | ||
|
||
using System; | ||
|
||
namespace net.r_eg.DllExport.Wizard | ||
{ | ||
[Flags] | ||
public enum DxpOptType | ||
{ | ||
None, | ||
|
||
/// <summary> | ||
/// Do not use manager for automatic restore the remote package. | ||
/// </summary> | ||
NoMgr = 0x01, | ||
} | ||
} |
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
Oops, something went wrong.