Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
36 changes: 34 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 12 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,21 @@
"name": "flo-desktop",
"version": "1.6.7",
"description": "Flo - Self-hosted Point of Sale System",
"engines": {
"node": ">=22.0.0"
},
"main": "dist/index.js",
"scripts": {
"dev": "npm run build:frontend && npm run build && electron .",
"clean": "npx kill-port 3001 3002",
"predev": "git submodule update --init",
"dev": "npm run clean && npm run build:frontend && npm run build && electron .",
"dev:frontend": "cd frontend && npm run dev",
"build": "tsc",
"build:frontend": "cd frontend && npm ci && NEXT_BUILD_MODE=desktop NEXT_PUBLIC_API_URL=http://localhost:3001/api npm run build",
"build:frontend": "cd frontend && npm ci && npx cross-env NEXT_BUILD_MODE=desktop NEXT_PUBLIC_API_URL=http://localhost:3001/api npm run build",
"build:all-platforms": "npm run build:frontend && npm run build && electron-builder --win --mac --linux",
"postinstall": "git submodule update --init --recursive && npx @electron/rebuild -f -w better-sqlite3",
"build:win": "npm run build:frontend && npm run build && electron-builder --win",
"build:appx": "npm run build:frontend && npm run build && electron-builder --win --target appx",
"build:appx": "npm run build:frontend && npm run build && electron-builder --win appx",
"build:mac": "npm run build:frontend && npm run build && electron-builder --mac",
"build:mas": "MAS_BUILD=1 npm run build:frontend && MAS_BUILD=1 npm run build && MAS_BUILD=1 electron-builder --mac mas --universal",
"build:mas-dev": "MAS_BUILD=1 npm run build:frontend && MAS_BUILD=1 npm run build && MAS_BUILD=1 electron-builder --mac masDev",
Expand Down Expand Up @@ -45,6 +50,7 @@
"@types/ws": "^8.5.10",
"electron": "^31.1.0",
"electron-builder": "^26.8.1",
"kill-port": "^2.0.1",
"typescript": "^5.4.5"
},
"dependencies": {
Expand Down Expand Up @@ -104,9 +110,9 @@
"appx": {
"applicationId": "FloCafe",
"backgroundColor": "#1e1e2e",
"publisherDisplayName": "YOUR_PUBLISHER_DISPLAY_NAME",
"identityName": "YOUR_IDENTITY_NAME",
"publisher": "CN=YOUR_PUBLISHER_CN",
"publisherDisplayName": "Codify Apps Private Limited",
"identityName": "CodifyAppsPrivateLimited.FloCafe",
"publisher": "CN=34AFD24D-EC88-44B8-B309-08BB8A6BB5F7",
"displayName": "Flo Cafe",
"languages": [
"en-US"
Expand Down