From 13f33a900a526dba58e48e07c72e5c057d419172 Mon Sep 17 00:00:00 2001 From: Jake Swenson Date: Sun, 22 Oct 2017 10:08:50 -0700 Subject: [PATCH] build script --- Dockerfile | 7 +++++-- Program.cs | 4 +++- build.sh | 5 +++++ 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100755 build.sh diff --git a/Dockerfile b/Dockerfile index 2b0f635..a48c7f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,9 @@ COPY bin/Debug/netcoreapp2.0/publish/* /bitBetter/ COPY cert.cert /newLicensing.cer RUN dotnet /bitBetter/bitBetter.dll && \ - mv /app/Core.dll /app.Core.orig.dll && \ + echo "modified dll" && \ + mv /app/Core.dll /app/Core.orig.dll && \ mv /app/modified.dll /app/Core.dll && \ - rm -rf /bitBetter && rm -rf /newLicensing.cer \ No newline at end of file + echo "replaced dll" && \ + rm -rf /bitBetter && rm -rf /newLicensing.cer && \ + echo "cleaned up" \ No newline at end of file diff --git a/Program.cs b/Program.cs index 6a3decf..1c5747d 100644 --- a/Program.cs +++ b/Program.cs @@ -10,7 +10,7 @@ namespace bitwardenSelfLicensor { class Program { - static void Main(string[] args) + static int Main(string[] args) { string cerFile; string corePath; @@ -86,6 +86,8 @@ namespace bitwardenSelfLicensor // } module.Write("modified.dll"); + + return 0; } } } diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..fc44bff --- /dev/null +++ b/build.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +dotnet restore +dotnet publish +docker build . -t bitbetter/api --squash \ No newline at end of file