build script

This commit is contained in:
Jake Swenson 2017-10-22 10:08:50 -07:00
parent 75b6eda59d
commit 13f33a900a
3 changed files with 13 additions and 3 deletions

View File

@ -4,6 +4,9 @@ COPY bin/Debug/netcoreapp2.0/publish/* /bitBetter/
COPY cert.cert /newLicensing.cer COPY cert.cert /newLicensing.cer
RUN dotnet /bitBetter/bitBetter.dll && \ 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 && \ mv /app/modified.dll /app/Core.dll && \
rm -rf /bitBetter && rm -rf /newLicensing.cer echo "replaced dll" && \
rm -rf /bitBetter && rm -rf /newLicensing.cer && \
echo "cleaned up"

View File

@ -10,7 +10,7 @@ namespace bitwardenSelfLicensor
{ {
class Program class Program
{ {
static void Main(string[] args) static int Main(string[] args)
{ {
string cerFile; string cerFile;
string corePath; string corePath;
@ -86,6 +86,8 @@ namespace bitwardenSelfLicensor
// } // }
module.Write("modified.dll"); module.Write("modified.dll");
return 0;
} }
} }
} }

5
build.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
dotnet restore
dotnet publish
docker build . -t bitbetter/api --squash