aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-12-22 02:08:15 -0500
committerLibravatar vnugent <public@vaughnnugent.com>2023-12-22 02:08:15 -0500
commit009dfe78b3f645b30656b1dac5b9b30cb32bcea2 (patch)
treebe90916d95ec9fe7dfdd66c24ef889f97af97a28
parentad28175287c1a5df9b715c0755ed040985314960 (diff)
add argon2 lib to package
-rw-r--r--ci/plugins.taskfile.yaml31
-rw-r--r--ci/taskfile.yaml7
-rw-r--r--front-end/package-lock.json1
3 files changed, 38 insertions, 1 deletions
diff --git a/ci/plugins.taskfile.yaml b/ci/plugins.taskfile.yaml
index e27a278..3620a4a 100644
--- a/ci/plugins.taskfile.yaml
+++ b/ci/plugins.taskfile.yaml
@@ -18,6 +18,7 @@ tasks:
- task: install-vncache-sessions
- task: install-router
- task: install-users
+ - task: install-argon2-lib
- task: build-cmnext
build-cmnext:
@@ -101,6 +102,36 @@ tasks:
FILE_NAME: "release.tgz"
DIR: './plugins/assets/VNLib.Plugins.Sessions.VNCache'
+ install-argon2-lib:
+ cmds:
+ #install the argon2 binary for Windows
+ - task: install-plugin
+ vars:
+ NAME: 'argon2'
+ PROJECT_NAME: 'phc-winner-argon2'
+ MODULE_NAME: "VNLib.Core"
+ FILE_NAME: "win-x64-release-Argon2.tgz"
+ DIR: './lib/argon2'
+
+ #install the argon2 source code package for Linux and Mac
+ - task: install-plugin
+ vars:
+ NAME: 'argon2'
+ PROJECT_NAME: 'phc-winner-argon2'
+ MODULE_NAME: "VNLib.Core"
+ FILE_NAME: "src.tgz"
+ DIR: './lib/argon2'
+
+ #remove unneeded files
+ - cmd: powershell -Command "rm ./lib/argon2/man -Recurse"
+ ignore_error: true
+ - cmd: powershell -Command "rm ./lib/argon2/latex -Recurse"
+ ignore_error: true
+ - cmd: powershell -Command "rm ./lib/argon2/kats -Recurse"
+ ignore_error: true
+ - cmd: powershell -Command "rm ./lib/argon2/argon2-specs.pdf"
+ ignore_error: true
+
install-plugin:
cmds:
#make the plugin directory
diff --git a/ci/taskfile.yaml b/ci/taskfile.yaml
index fdf12b0..b8c6719 100644
--- a/ci/taskfile.yaml
+++ b/ci/taskfile.yaml
@@ -17,6 +17,10 @@ tasks:
build:
cmds:
+ #clean out dist dir before building
+ - cmd: powershell -Command "rm -Recurse -Force ./dist"
+ ignore_error: true
+
- task: install-plugins
- task: install-webserver
@@ -119,4 +123,5 @@ tasks:
- cmd: powershell -Command "rm -Recurse -Force ./build"
- cmd: powershell -Command "rm -Recurse -Force ./bin"
- cmd: powershell -Command "rm -Recurse -Force ./dist"
- - cmd: powershell -Command "rm -Recurse -Force ./plugins" \ No newline at end of file
+ - cmd: powershell -Command "rm -Recurse -Force ./plugins"
+ - cmd: powershell -Command "rm -Recurse -Force ./lib" \ No newline at end of file
diff --git a/front-end/package-lock.json b/front-end/package-lock.json
index 93e699e..0da3c49 100644
--- a/front-end/package-lock.json
+++ b/front-end/package-lock.json
@@ -56,6 +56,7 @@
}
},
"../lib/admin": {
+ "name": "@vnuge/cmnext-admin",
"version": "0.1.2",
"license": "agpl3",
"devDependencies": {