diff --git a/data_migration_tools/.gitignore b/data_migration_tools/.gitignore new file mode 100644 index 0000000..df9b574 --- /dev/null +++ b/data_migration_tools/.gitignore @@ -0,0 +1 @@ +/tool* \ No newline at end of file diff --git a/data_migration_tools/baseNode.zip b/data_migration_tools/baseNode.zip new file mode 100644 index 0000000..60e180f Binary files /dev/null and b/data_migration_tools/baseNode.zip differ diff --git a/data_migration_tools/buildTool.ps1 b/data_migration_tools/buildTool.ps1 new file mode 100644 index 0000000..57879d5 --- /dev/null +++ b/data_migration_tools/buildTool.ps1 @@ -0,0 +1,8 @@ +# 移行ツールをビルドする +# docker ps + +$clientContainerName = "client_devcontainer-client-1" +$serverContainerName = "server_devcontainer-server-1" + +docker exec -t $clientContainerName sudo npm run build:local +docker exec -t $serverContainerName npm run build:exe \ No newline at end of file diff --git a/data_migration_tools/server/buildTool.sh b/data_migration_tools/server/buildTool.sh new file mode 100644 index 0000000..6a8930f --- /dev/null +++ b/data_migration_tools/server/buildTool.sh @@ -0,0 +1,12 @@ +if [ ! -d "../tool" ]; then + mkdir "../tool" + echo "フォルダが作成されました。" +else + rm -f ../tool/ODMS_DataTool.exe +fi +unzip ../baseNode.zip -d ../tool +ncc build dist/main.js -o dist_single -a +npx -y postject ../tool/ODMS_DataTool.exe NODE_JS_CODE dist_single/index.js --sentinel-fuse NODE_JS_FUSE_fce680ab2cc467b6e072b8b5df1996b2 --overwrite +cp -r build ../tool +cp .env ../tool +cp .env.local.example ../tool \ No newline at end of file