feat: Add Mini QR#1665
Conversation
| APP="Mini-QR" | ||
| var_tags="${var_tags:-QRcode;}" # Max 2 tags, semicolon-separated | ||
| var_cpu="${var_cpu:-2}" # CPU cores: 1-4 typical | ||
| var_ram="${var_ram:-2048}" # RAM in MB: 512, 1024, 2048, etc. | ||
| var_disk="${var_disk:-6}" # Disk in GB: 6, 8, 10, 20 typical | ||
| var_os="${var_os:-debian}" # OS: debian, ubuntu, alpine | ||
| var_version="${var_version:-13}" # OS Version: 13 (Debian), 24.04 (Ubuntu), 3.21 (Alpine) | ||
| var_unprivileged="${var_unprivileged:-1}" # 1=unprivileged (secure), 0=privileged (for Docker/Podman) | ||
|
|
||
| header_info "$APP" # Display app name and setup header | ||
| variables # Initialize build.func variables | ||
| color # Load color variables for output | ||
| catch_errors # Enable error handling with automatic exit on failure |
There was a problem hiding this comment.
can you remove all those comments?
There was a problem hiding this comment.
Removed all comments
| fi | ||
|
|
||
| if check_for_gh_release "mini-qr" "lyqht/mini-qr"; then | ||
|
|
There was a problem hiding this comment.
Removed whitespace
| CLEAN_INSTALL=1 fetch_and_deploy_gh_release "mini-qr" "lyqht/mini-qr" "tarball" "latest" "/opt/mini-qr" | ||
|
|
||
| msg_info "Installing Dependencies" | ||
| cd /opt/mini-qr || exit |
There was a problem hiding this comment.
| cd /opt/mini-qr || exit | |
| cd /opt/mini-qr |
There was a problem hiding this comment.
Removed exit statement
| msg_ok "Installed Dependencies" | ||
|
|
||
| NODE_VERSION="20" setup_nodejs | ||
|
|
There was a problem hiding this comment.
Removed whitespace
|
|
||
| cd /opt/mini-qr || exit | ||
|
|
There was a problem hiding this comment.
| cd /opt/mini-qr || exit | |
| cd /opt/mini-qr |
There was a problem hiding this comment.
Removed exit statement
|
|
||
| $STD npm install | ||
| $STD npm run build | ||
|
|
There was a problem hiding this comment.
Removed whitespace
|
|
||
| msg_info "Reloading Caddy" | ||
| systemctl reload caddy | ||
| msg_ok "Reloaded Caddy" | ||
|
|
There was a problem hiding this comment.
| msg_info "Reloading Caddy" | |
| systemctl reload caddy | |
| msg_ok "Reloaded Caddy" | |
| systemctl reload caddy |
There was a problem hiding this comment.
Removed logging messages
| "documentation": "https://github.com/lyqht/mini-qr", | ||
| "website": "https://mini-qr-code-generator.vercel.app/", | ||
| "logo": "https://raw.githubusercontent.com/lyqht/mini-qr/refs/heads/main/public/favicon.svg", | ||
| "config_path": "", |
There was a problem hiding this comment.
| "config_path": "", | |
| "config_path": "/etc/caddy/Caddyfile", |
There was a problem hiding this comment.
Added Caddyfile to config path
| "privileged": false, | ||
| "documentation": "https://github.com/lyqht/mini-qr", | ||
| "website": "https://mini-qr-code-generator.vercel.app/", | ||
| "logo": "https://raw.githubusercontent.com/lyqht/mini-qr/refs/heads/main/public/favicon.svg", |
There was a problem hiding this comment.
can you use a logo from selfh.st/icons or request it at their github discussions?
There was a problem hiding this comment.
Used logo from selfh.st
|
Hi, is there anything else that needs to be done on my end ? Thank you :) |
Scripts which are clearly AI generated and not further revised by the Author of this PR (in terms of Coding Standards and Script Layout) may be closed without review.
✍️ Description
Add script for Mini QR
🔗 Related PR / Issue
Link: community-scripts/ProxmoxVE#6099
✅ Prerequisites (X in brackets)
🛠️ Type of Change (X in brackets)
README,AppName.md,CONTRIBUTING.md, or other docs.🔍 Code & Security Review (X in brackets)
Code_Audit.md&CONTRIBUTING.mdguidelinesAppName.sh,AppName-install.sh,AppName.json)📋 Additional Information (optional)
📦 Application Requirements (for new scripts)
🌐 Source
https://github.com/lyqht/mini-qr