Add packaging script

This commit is contained in:
jude 2023-12-21 17:07:28 +00:00
parent 8b508b39c0
commit 5fe558ebd1
3 changed files with 12 additions and 1 deletions

3
.gitignore vendored
View File

@ -22,3 +22,6 @@ dist-ssr
*.njsproj *.njsproj
*.sln *.sln
*.sw? *.sw?
*.deb
reminder-dashboard/usr/share/reminder-dashboard/*

View File

@ -5,7 +5,8 @@
"scripts": { "scripts": {
"dev": "vite build --watch --mode development", "dev": "vite build --watch --mode development",
"build": "vite build", "build": "vite build",
"preview": "vite preview" "preview": "vite preview",
"package": "mkdir -p reminder-dashboard/usr/share/reminder-dashboard && vite build --mode production --outDir reminder-dashboard/usr/share/reminder-dashboard && dpkg-deb --build reminder-dashboard"
}, },
"dependencies": { "dependencies": {
"axios": "^1.5.1", "axios": "^1.5.1",

View File

@ -0,0 +1,7 @@
Package: reminder-dashboard
Version: 1.0
Section: base
Priority: optional
Architecture: amd64
Maintainer: Jude Southworth <judesouthworth@pm.me>
Description: NPM managed dashboard