diff --git a/.gitignore b/.gitignore index f52b93a..c83c79e 100644 --- a/.gitignore +++ b/.gitignore @@ -91,4 +91,5 @@ typings/ # Electron-Forge out/ old/ -dist/ \ No newline at end of file +dist/ +node_modules diff --git a/electron-builder.yml b/electron-builder.yml index 9268599..cd23df3 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -1,72 +1,77 @@ -appId: com.roboticsacademy.app -productName: RoboticsAcademy -directories: - buildResources: build - -buildDependenciesFromSource: true - -extraResources: - - './splashscreen.html' - - 'resources/**' - - './roboticsacademy.db' -files: - - '!**/.vscode/*' - - '!src/*' - - '!electron.vite.config.{js,ts,mjs,cjs}' - - '!{.eslintignore,.eslintrc.cjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}' - - '!{.env,.env.*,.npmrc,pnpm-lock.yaml}' - - '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}' -asarUnpack: - - resources/** -win: - executableName: RoboticsAcademy - requestedExecutionLevel: requireAdministrator - target: - - nsis - icon: resources/icons/icon.ico -nsis: - artifactName: ${name}-${version}-setup.${ext} - shortcutName: ${productName} - uninstallDisplayName: ${productName} - installerLanguages: - - en - - es - createDesktopShortcut: true - displayLanguageSelector: true - createStartMenuShortcut: true - allowToChangeInstallationDirectory: true - oneClick: false - perMachine: false - installerIcon: resources/icons/icon.ico - uninstallerIcon: resources/icons/icon.ico - installerHeaderIcon: resources/icons/icon.ico - license: license/license_en_US.txt - -mac: - entitlementsInherit: build/entitlements.mac.plist - extendInfo: - - NSCameraUsageDescription: Application requests access to the device's camera. - - NSMicrophoneUsageDescription: Application requests access to the device's microphone. - - NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder. - - NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder. - notarize: false -dmg: - artifactName: ${name}-${version}.${ext} -linux: - icon: resources/icons/icon.icns - desktop: - Type: 'Application' - Encoding: 'UTF-8' - Name: 'Robotics Academy' - target: - - deb - maintainer: https://jderobot.github.io/RoboticsAcademy/ - category: Utility -appImage: - artifactName: ${name}-${version}.${ext} -npmRebuild: false -publish: - provider: generic - url: -electronDownload: - mirror: +appId: com.roboticsacademy.app +productName: RoboticsAcademy +directories: + buildResources: build + +buildDependenciesFromSource: true + +extraResources: + - './splashscreen.html' + - './updaterScreen.html' + - 'resources/**' + - './roboticsacademy.db' +files: + - '!**/.vscode/*' + - '!src/*' + - '!electron.vite.config.{js,ts,mjs,cjs}' + - '!{.eslintignore,.eslintrc.cjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}' + - '!{.env,.env.*,.npmrc,pnpm-lock.yaml}' + - '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}' +asarUnpack: + - resources/** +win: + executableName: RoboticsAcademy + requestedExecutionLevel: requireAdministrator + target: + - nsis + icon: resources/icons/icon.ico +nsis: + artifactName: ${name}-${version}-setup.${ext} + shortcutName: ${productName} + uninstallDisplayName: ${productName} + installerLanguages: + - en + - es + createDesktopShortcut: true + displayLanguageSelector: true + createStartMenuShortcut: true + allowToChangeInstallationDirectory: true + oneClick: false + perMachine: false + installerIcon: resources/icons/icon.ico + uninstallerIcon: resources/icons/icon.ico + installerHeaderIcon: resources/icons/icon.ico + license: license/license_en_US.txt + +mac: + entitlementsInherit: build/entitlements.mac.plist + extendInfo: + - NSCameraUsageDescription: Application requests access to the device's camera. + - NSMicrophoneUsageDescription: Application requests access to the device's microphone. + - NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder. + - NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder. + notarize: false +dmg: + artifactName: ${name}-${version}.${ext} +linux: + icon: resources/icons/icon.icns + desktop: + Type: 'Application' + Encoding: 'UTF-8' + Name: 'Robotics Academy' + target: + - deb + maintainer: https://jderobot.github.io/RoboticsAcademy/ + category: Utility +appImage: + artifactName: ${name}-${version}.${ext} +npmRebuild: false +publish: + provider: github + owner: JdeRobot + repo: RoboticsAcademy-Desktop + releaseType: release + private: false + +electronDownload: + mirror: diff --git a/electron.vite.config.1723371720494.mjs b/electron.vite.config.1723371720494.mjs deleted file mode 100644 index c4e21ec..0000000 --- a/electron.vite.config.1723371720494.mjs +++ /dev/null @@ -1,23 +0,0 @@ -// electron.vite.config.ts -import { resolve } from "path"; -import { defineConfig, externalizeDepsPlugin } from "electron-vite"; -import react from "@vitejs/plugin-react"; -var electron_vite_config_default = defineConfig({ - main: { - plugins: [externalizeDepsPlugin()] - }, - preload: { - plugins: [externalizeDepsPlugin()] - }, - renderer: { - resolve: { - alias: { - "@renderer": resolve("src/renderer/src") - } - }, - plugins: [react()] - } -}); -export { - electron_vite_config_default as default -}; diff --git a/electron.vite.config.1724091239149.mjs b/electron.vite.config.1724091239149.mjs deleted file mode 100644 index c4e21ec..0000000 --- a/electron.vite.config.1724091239149.mjs +++ /dev/null @@ -1,23 +0,0 @@ -// electron.vite.config.ts -import { resolve } from "path"; -import { defineConfig, externalizeDepsPlugin } from "electron-vite"; -import react from "@vitejs/plugin-react"; -var electron_vite_config_default = defineConfig({ - main: { - plugins: [externalizeDepsPlugin()] - }, - preload: { - plugins: [externalizeDepsPlugin()] - }, - renderer: { - resolve: { - alias: { - "@renderer": resolve("src/renderer/src") - } - }, - plugins: [react()] - } -}); -export { - electron_vite_config_default as default -}; diff --git a/package.json b/package.json index 1c4cdf8..b45c64d 100644 --- a/package.json +++ b/package.json @@ -1,75 +1,78 @@ -{ - "name": "RoboticsAcademy", - "version": "2.0.0", - "description": "Cross platform Desktop Application for Robotics Academy.", - "main": "./out/main/index.js", - "author": "Robotics Academy", - "contributors": [ - { - "name": "JoseMaria Cañas", - "url": "https://gsyc.urjc.es/jmplaza/" - }, - { - "name": "Apoorv Garg", - "url": "https://apoorvgarg.in/" - }, - { - "name": "Md. Shariar Kabir", - "email": "kabircp08@gmail.com" - } - ], - "homepage": "", - "scripts": { - "format": "prettier --write .", - "lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix", - "typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false", - "typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false", - "typecheck": "npm run typecheck:node && npm run typecheck:web", - "start": "electron-vite preview", - "dev": "electron-vite dev --watch", - "dist": "electron-builder --win", - "build": "npm run typecheck && electron-vite build", - "postinstall": "electron-builder install-app-deps", - "rebuild-sql": "electron-rebuild -f -w sqlite3", - "build:unpack": "npm run build && electron-builder --dir", - "build:win": "npm run build && electron-builder --win", - "build:mac": "electron-vite build && electron-builder --mac", - "build:linux": "electron-vite build && electron-builder --linux" - }, - "dependencies": { - "@electron-toolkit/preload": "^3.0.1", - "@electron-toolkit/utils": "^3.0.0", - "electron-settings": "^4.0.4", - "electron-updater": "^6.2.1", - "node-gyp": "^10.2.0", - "sqlite3": "^5.1.7", - "uuid": "^10.0.0" - }, - "devDependencies": { - "@electron-toolkit/eslint-config-prettier": "^2.0.0", - "@electron-toolkit/eslint-config-ts": "^2.0.0", - "@electron-toolkit/tsconfig": "^1.0.1", - "@types/node": "^22.1.0", - "@types/react": "^18.3.3", - "@types/react-dom": "^18.3.0", - "@vitejs/plugin-react": "^4.3.1", - "autoprefixer": "^10.4.20", - "electron": "^32.1.0", - "electron-builder": "^24.13.3", - "electron-rebuild": "^3.2.9", - "electron-vite": "^2.3.0", - "eslint": "^9.8.0", - "eslint-plugin-react": "^7.35.0", - "flowbite": "^2.5.1", - "flowbite-react": "^0.10.1", - "postcss": "^8.4.41", - "prettier": "^3.3.3", - "react": "^18.3.1", - "react-dom": "^18.3.1", - "tailwindcss": "^3.4.8", - "typescript": "^5.5.4", - "vite": "^5.4.0" - }, - "repository": "https://github.com/codezerro/RoboticsAcademy-Desktop.git", - "license": "MIT" -} +{ + "name": "RoboticsAcademy", + "version": "2.0.0", + "description": "Cross platform Desktop Application for Robotics Academy.", + "main": "./out/main/index.js", + "author": "Robotics Academy", + "contributors": [ + { + "name": "JoseMaria Cañas", + "url": "https://gsyc.urjc.es/jmplaza/" + }, + { + "name": "Apoorv Garg", + "url": "https://apoorvgarg.in/" + }, + { + "name": "Md. Shariar Kabir", + "email": "kabircp08@gmail.com" + } + ], + "homepage": "https://jderobot.github.io/", + "scripts": { + "format": "prettier --write .", + "lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix", + "typecheck:node": "tsc --noEmit -p tsconfig.node.json --composite false", + "typecheck:web": "tsc --noEmit -p tsconfig.web.json --composite false", + "typecheck": "npm run typecheck:node && npm run typecheck:web", + "start": "electron-vite preview", + "dev": "electron-vite dev --watch", + "dist": "electron-builder --win", + "build": "npm run typecheck && electron-vite build", + "postinstall": "electron-builder install-app-deps", + "rebuild-sql": "electron-rebuild -f -w sqlite3", + "build:unpack": "npm run build && electron-builder --dir", + "build:win": "npm run build && electron-builder --win", + "build:mac": "electron-vite build && electron-builder --mac", + "build:linux": "electron-vite build && electron-builder --linux" + }, + "dependencies": { + "@electron-toolkit/preload": "^3.0.1", + "@electron-toolkit/utils": "^3.0.0", + "electron-settings": "^4.0.4", + "electron-updater": "^6.3.9", + "node-gyp": "^10.2.0", + "sqlite3": "^5.1.7", + "uuid": "^10.0.0" + }, + "devDependencies": { + "@electron-toolkit/eslint-config-prettier": "^2.0.0", + "@electron-toolkit/eslint-config-ts": "^2.0.0", + "@electron-toolkit/tsconfig": "^1.0.1", + "@types/node": "^22.1.0", + "@types/react": "^18.3.3", + "@types/react-dom": "^18.3.0", + "@vitejs/plugin-react": "^4.3.1", + "autoprefixer": "^10.4.20", + "electron": "^32.1.0", + "electron-builder": "^24.13.3", + "electron-rebuild": "^3.2.9", + "electron-vite": "^2.3.0", + "eslint": "^9.8.0", + "eslint-plugin-react": "^7.35.0", + "flowbite": "^2.5.1", + "flowbite-react": "^0.10.1", + "postcss": "^8.4.41", + "prettier": "^3.3.3", + "react": "^18.3.1", + "react-dom": "^18.3.1", + "tailwindcss": "^3.4.8", + "typescript": "^5.5.4", + "vite": "^5.4.0" + }, + "repository": { + "type": "git", + "url": "https://github.com/codezerro/RoboticsAcademy-Desktop" + }, + "license": "MIT" +} diff --git a/roboticsacademy.db b/roboticsacademy.db index f016859..8bd4afb 100644 Binary files a/roboticsacademy.db and b/roboticsacademy.db differ diff --git a/splashscreen.html b/splashscreen.html index 1792be1..effc26e 100644 --- a/splashscreen.html +++ b/splashscreen.html @@ -106,7 +106,7 @@
by JdeRobot
-v2.0.0
+v2.0.0