First commit for bicorder-app
This commit is contained in:
22
bicorder-app/update-diagnostic.sh
Executable file
22
bicorder-app/update-diagnostic.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
# Update the diagnostic app when bicorder.json changes
|
||||
|
||||
echo "Checking for bicorder.json..."
|
||||
if [ ! -f "../bicorder.json" ]; then
|
||||
echo "Error: ../bicorder.json not found!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Building app with latest bicorder.json..."
|
||||
npm run build
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo ""
|
||||
echo "✓ Build successful!"
|
||||
echo "The app has been updated with the latest bicorder.json structure."
|
||||
echo "Deploy the 'dist' folder to your web server or run 'npm run preview' to test."
|
||||
else
|
||||
echo ""
|
||||
echo "✗ Build failed. Please check the errors above."
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user