Skip to content

Commit

Permalink
sync version
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansglazunov committed Jul 22, 2024
1 parent f857fc5 commit 31189d9
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 79 deletions.
66 changes: 1 addition & 65 deletions electron/package.json
Original file line number Diff line number Diff line change
@@ -1,65 +1 @@
{
"name": "@deep-foundation/perception-app",
"version": "0.0.20",
"description": "Your second memory.",
"homepage": "https://deep.foundation/",
"author": {
"name": "Deep Foundation",
"email": "[email protected]"
},
"repository": {
"type": "git",
"url": "https://github.com/deep-foundation/deepmemo-app"
},
"license": "MIT",
"main": "build/src/index.js",
"scripts": {
"build": "rimraf ./build/src && tsc",
"test": "jest",
"electron:start-live": "node ./live-runner.js",
"electron:start": "npm run build && electron --inspect=5858 ./",
"electron:debug": "APP_DEV=true electron .",
"electron:pack": "npm run build && node patch-electron-builder.cjs && electron-builder --publish never -c ./electron-builder.config.js",
"electron:pack-demo": "npm run build && node patch-electron-builder.cjs && CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --publish never -c ./electron-builder.config.demo.js",
"electron:sign": "npm run electron:sign-prod && npm run electron:sign-dev",
"electron:sign-prod": "electron-osx-sign dist/mas/sdk.app --entitlements=./entitlements.mas.plist --entitlements-inherit=./entitlements.mas.inherit.plist --identity='Developer ID Application: Deep Foundation (XXXXXXXXXX)' --platform=mas --type=distribution --provisioning-profile=developer-id-sdk.provisionprofile",
"electron:sign-dev": "electron-osx-sign dist/mas-dev/sdk.app --identity='Developer ID Application: Deep Foundation (XXXXXXXXXX)' --platform=mas --type=development --entitlements=./entitlements.mas.plist --entitlements-inherit=./entitlements.mas.inherit.plist --provisioning-profile=./sdkdevelopment.provisionprofile",
"electron:notarize": "node notarize.cjs",
"electron:make": "npm run build && electron-builder build --config ./electron-builder.config.js",
"electron:make-and-publish": "npm run build && electron-builder build --config ./electron-builder.config.js --publish always"
},
"dependencies": {
"@capacitor-community/electron": "^4.0.1",
"chokidar": "~3.5.2",
"electron-is-dev": "~2.0.0",
"electron-serve": "~1.1.0",
"electron-unhandled": "~3.0.2",
"electron-updater": "~4.3.9",
"electron-window-state": "~5.0.3",
"express": "^4.17.1",
"fix-path": "^3.0.0",
"fkill": "^7.2.1",
"internal-ip": "^6.2.0",
"microtime": "^3.0.0",
"rimraf": "^5.0.1",
"socket.io": "^4.2.0",
"typescript": "^5.0.4"
},
"devDependencies": {
"@types/jest": "^29.5.3",
"@types/node": "^20.12.7",
"electron": "^15.5.7",
"electron-builder": "^23.0.2",
"electron-notarize": "^1.2.2",
"electron-rebuild": "~2.3.5",
"jest": "^29.6.1",
"jest-environment-jsdom": "^29.6.1",
"node-gyp": "^8.4.1",
"puppeteer": "^20.9.0",
"ts-jest": "^29.1.1"
},
"keywords": [
"capacitor",
"electron"
]
}
{"name":"@deep-foundation/perception-app","version":"0.0.20","description":"Your second memory.","homepage":"https://deep.foundation/","author":{"name":"Deep Foundation","email":"[email protected]"},"repository":{"type":"git","url":"https://github.com/deep-foundation/deepmemo-app"},"license":"MIT","main":"build/src/index.js","scripts":{"build":"rimraf ./build/src && tsc","test":"jest","electron:start-live":"node ./live-runner.js","electron:start":"npm run build && electron --inspect=5858 ./","electron:debug":"APP_DEV=true electron .","electron:pack":"npm run build && node patch-electron-builder.cjs && electron-builder --publish never -c ./electron-builder.config.js","electron:pack-demo":"npm run build && node patch-electron-builder.cjs && CSC_IDENTITY_AUTO_DISCOVERY=false electron-builder --publish never -c ./electron-builder.config.demo.js","electron:sign":"npm run electron:sign-prod && npm run electron:sign-dev","electron:sign-prod":"electron-osx-sign dist/mas/sdk.app --entitlements=./entitlements.mas.plist --entitlements-inherit=./entitlements.mas.inherit.plist --identity='Developer ID Application: Deep Foundation (XXXXXXXXXX)' --platform=mas --type=distribution --provisioning-profile=developer-id-sdk.provisionprofile","electron:sign-dev":"electron-osx-sign dist/mas-dev/sdk.app --identity='Developer ID Application: Deep Foundation (XXXXXXXXXX)' --platform=mas --type=development --entitlements=./entitlements.mas.plist --entitlements-inherit=./entitlements.mas.inherit.plist --provisioning-profile=./sdkdevelopment.provisionprofile","electron:notarize":"node notarize.cjs","electron:make":"npm run build && electron-builder build --config ./electron-builder.config.js","electron:make-and-publish":"npm run build && electron-builder build --config ./electron-builder.config.js --publish always"},"dependencies":{"@capacitor-community/electron":"^4.0.1","chokidar":"~3.5.2","electron-is-dev":"~2.0.0","electron-serve":"~1.1.0","electron-unhandled":"~3.0.2","electron-updater":"~4.3.9","electron-window-state":"~5.0.3","express":"^4.17.1","fix-path":"^3.0.0","fkill":"^7.2.1","internal-ip":"^6.2.0","microtime":"^3.0.0","rimraf":"^5.0.1","socket.io":"^4.2.0","typescript":"^5.0.4"},"devDependencies":{"@types/jest":"^29.5.3","@types/node":"^20.12.7","electron":"^15.5.7","electron-builder":"^23.0.2","electron-notarize":"^1.2.2","electron-rebuild":"~2.3.5","jest":"^29.6.1","jest-environment-jsdom":"^29.6.1","node-gyp":"^8.4.1","puppeteer":"^20.9.0","ts-jest":"^29.1.1"},"keywords":["capacitor","electron"]}
106 changes: 94 additions & 12 deletions package-lock.json

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

9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deep-foundation/perception-app",
"version": "0.0.20",
"version": "0.0.21",
"description": "",
"license": "Unlicense",
"main": "./bin/server.js",
Expand Down Expand Up @@ -28,8 +28,12 @@
"dev": "(cd ./perception-imports; npm run package:app:sync); NEXT_PUBLIC_GRAPHQL_URL=https://deeplinks.deep.foundation/gql next dev",
"run-ios": "npx cap run ios",
"open-ios": "npx cap open ios",
"build-ios": "npm version prerelease --no-git-tag-version --no-commit-hook && rimraf app && NEXT_PUBLIC_BUILD=\"ios\" npm run export && npx cap sync ios"
"build-ios": "npm version prerelease --no-git-tag-version --no-commit-hook && rimraf app && NEXT_PUBLIC_BUILD=\"ios\" npm run export && npx cap sync ios",
"sync-versions": "node ./sync-version.js"
},
"pre-commit": [
"sync-versions"
],
"dependencies": {
"@chakra-ui/icons": "^2.1.1",
"@chakra-ui/theme-tools": "^2.1.2",
Expand All @@ -52,6 +56,7 @@
"next-env": "^1.1.1",
"next-i18next": "^15.2.0",
"next-pwa": "^5.6.0",
"pre-commit": "^1.2.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-focus-lock": "^2.12.1",
Expand Down
6 changes: 6 additions & 0 deletions sync-version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const fs = require('fs');
const path = require('path');
const nextPckg = JSON.parse(fs.readFileSync(path.join(__dirname, 'package.json'), 'utf8'));
const electronPckg = JSON.parse(fs.readFileSync(path.join(__dirname, 'electron', 'package.json'), 'utf8'));
electronPckg.id = nextPckg.id;
fs.writeFileSync(path.join(__dirname, 'electron', 'package.json'), JSON.stringify(electronPckg));

0 comments on commit 31189d9

Please sign in to comment.