Skip to content

Commit

Permalink
changing nuget build to specific devbuild #1019
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfranblanco committed Mar 29, 2024
1 parent a3d2dab commit 317877f
Show file tree
Hide file tree
Showing 3 changed files with 224 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
- name: Run
run: |
cd src
& ".\nuget.bat"
& ".\nugetDevBuild.bat"
4 changes: 2 additions & 2 deletions src/nuget.bat
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ setlocal
set DIR=%~dp0
set OUTPUTDIR=%~dp0packages\
for /R %DIR% %%a in (*.nupkg) do xcopy "%%a" "%OUTPUTDIR%"
xcopy *.nupkg packages /y
xcopy *.nupkg packages /y /s

for /R %DIR% %%a in (*.snupkg) do xcopy "%%a" "%OUTPUTDIR%"
xcopy *.snupkg packages /y
xcopy *.snupkg packages /y /s

EXIT /B %ERRORLEVEL%

Expand Down
221 changes: 221 additions & 0 deletions src/nugetDevBuild.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
rem packing web3 and dependencies

for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a"

set "YY=%dt:~2,2%" & set "YYYY=%dt:~0,4%" & set "MM=%dt:~4,2%" & set "DD=%dt:~6,2%"
set "HH=%dt:~8,2%" & set "Min=%dt:~10,2%" & set "Sec=%dt:~12,2%"
set "fullstamp=%YYYY%%MM%%DD%%HH%%Min%%Sec%"


del /S *.*.nupkg
del /S *.*.snupkg
SET releaseSuffix=devbuildsecurityrisk%fullstamp%
SET targetNet35=false
SET projectName=


cd Nethereum.Web3
SET projectName=Nethereum.Web3.csproj
CALL :restorepack
SET projectName=Nethereum.Web3Lite.csproj
CALL :restorepack
SET projectName=
cd ..

cd Nethereum.Hex
CALL :restorepack
cd ..

cd Nethereum.ABI
CALL :restorepack
cd ..

cd Nethereum.JsonRpc.Client
CALL :restorepack
cd ..

cd Nethereum.RPC
CALL :restorepack
cd ..


cd Nethereum.StandardToken*
CALL :restorepack
cd ..

cd Nethereum.JsonRpc.IpcClient*
CALL :restorepack
cd ..

cd Nethereum.JsonRpc.RpcClient*
CALL :restorepack
cd ..

cd Nethereum.JsonRpc.WebSocketClient*
CALL :restorepack
cd ..

cd Nethereum.KeyStore*
CALL :restorepack
cd ..

cd Nethereum.ENS*
CALL :restorepack
cd ..

cd Nethereum.Quorum*
CALL :restorepack
cd ..

cd Nethereum.Geth*
CALL :restorepack
cd ..

cd Nethereum.Contracts*
CALL :restorepack
cd ..

cd Nethereum.RLP*
CALL :restorepack
cd ..

cd Nethereum.Signer
CALL :restorepack
cd ..

cd Nethereum.Signer.AzureKeyVault
CALL :restorepack
cd ..

cd Nethereum.Signer.AWSKeyManagement
CALL :restorepack
cd ..

cd Nethereum.Signer.Ledger
CALL :restorepack
cd ..

cd Nethereum.Signer.Trezor
CALL :restorepack
cd ..

cd Nethereum.Util*
CALL :restorepack
cd ..

cd Nethereum.HDWallet
CALL :restorepack
cd ..

cd Nethereum.Parity*
CALL :restorepack
cd ..

cd Nethereum.Accounts*
CALL :restorepack
cd ..

cd Nethereum.Parity.Reactive
CALL :restorepack
cd..

cd Nethereum.RPC.Reactive
CALL :restorepack
cd..

cd Nethereum.Model
CALL :restorepack
cd..

cd Nethereum.StandardNonFungibleTokenERC721
CALL :restorepack
cd..

cd Nethereum.Besu
CALL :restorepack
cd..

cd Nethereum.RSK
CALL :restorepack
cd..

cd Nethereum.BlockchainProcessing
CALL :restorepack
cd..

cd Nethereum.Signer.EIP712
CALL :restorepack
cd..

cd Nethereum.GnosisSafe
CALL :restorepack
cd ..

cd Nethereum.Siwe.Core
CALL :restorepack
cd ..

cd Nethereum.Siwe
CALL :restorepack
cd ..

cd Nethereum.Optimism
CALL :restorepack
cd ..

cd Nethereum.Metamask
CALL :restorepack
cd ..

cd Nethereum.Metamask.Blazor
CALL :restorepack
cd ..

cd Nethereum.UI
CALL :restorepack
cd ..

cd Nethereum.EVM
CALL :restorepack
cd ..

cd Nethereum.Merkle
CALL :restorepack
cd ..

cd Nethereum.Merkle.Patricia
CALL :restorepack
cd ..

cd Nethereum.RPC.Extensions
CALL :restorepack
cd ..

cd Nethereum.EVM.Contracts
CALL :restorepack
cd ..

cd Nethereum.DataServices
CALL :restorepack
cd ..

cd Nethereum.WalletConnect
CALL :restorepack
cd ..

setlocal
set DIR=%~dp0
set OUTPUTDIR=%~dp0packages\
for /R %DIR% %%a in (*.nupkg) do xcopy "%%a" "%OUTPUTDIR%"
xcopy *.nupkg packages /y

for /R %DIR% %%a in (*.snupkg) do xcopy "%%a" "%OUTPUTDIR%"
xcopy *.snupkg packages /y

EXIT /B %ERRORLEVEL%

:restorepack
dotnet restore %projectName% /property:ReleaseSuffix=%releaseSuffix% /property:TargetNet35=%targetNet35%
dotnet build %projectName% -c Release /property:TargetNet35=%targetNet35% /property:ReleaseSuffix=%releaseSuffix%
dotnet pack %projectName% -c Release --include-symbols -p:SymbolPackageFormat=snupkg /property:TargetNet35=%targetNet35% /property:ReleaseSuffix=%releaseSuffix%
EXIT /B 0

0 comments on commit 317877f

Please sign in to comment.