diff --git a/.env b/.env new file mode 100644 index 0000000..497e0a9 --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +APPLE_ID=developer@datalogix.com.br +APPLE_ID_PASS=pprr-roll-xmjp-ihxx +TEAM_ID=4BX4Q257V3 diff --git a/build/notarize.js b/build/notarize.js index a277f25..593e1ea 100644 --- a/build/notarize.js +++ b/build/notarize.js @@ -1,3 +1,5 @@ +require('dotenv').config() + const { notarize } = require('@electron/notarize') module.exports = async (context) => { @@ -5,10 +7,10 @@ module.exports = async (context) => { console.log('aftersign hook triggered, start to notarize app.') - if (!process.env.CI) { + /*if (!process.env.CI) { console.log(`skipping notarizing, not in CI.`) return - } + }*/ if (!('APPLE_ID' in process.env && 'APPLE_ID_PASS' in process.env)) { console.warn('skipping notarizing, APPLE_ID and APPLE_ID_PASS env variables must be set.') diff --git a/package.json b/package.json index 4586cba..f7eb5d8 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "edumais-electron", "description": "Edumais é um inovador Ambiente Virtual de Aprendizagem voltado para o meio escolar e empresarial.", "homepage": "https://www.edumais.com.br", - "version": "1.0.14", + "version": "1.0.15", "main": "./out/main/index.js", "author": { "name": "Edumais", @@ -40,6 +40,7 @@ "@vue/eslint-config-typescript": "^11.0.2", "@vueuse/components": "^9.12.0", "@vueuse/core": "^9.12.0", + "dotenv": "^16.0.3", "electron": "^23.1.0", "electron-builder": "^23.6.0", "electron-vite": "^1.0.19", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 11ebf93..0e61229 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,6 +13,7 @@ specifiers: '@vue/eslint-config-typescript': ^11.0.2 '@vueuse/components': ^9.12.0 '@vueuse/core': ^9.12.0 + dotenv: ^16.0.3 electron: ^23.1.0 electron-builder: ^23.6.0 electron-store: ^8.1.0 @@ -52,6 +53,7 @@ devDependencies: '@vue/eslint-config-typescript': 11.0.2_h2vevngznqqjsppuxlkfy3oipa '@vueuse/components': 9.12.0_vue@3.2.47 '@vueuse/core': 9.12.0_vue@3.2.47 + dotenv: 16.0.3 electron: 23.1.0 electron-builder: 23.6.0 electron-vite: 1.0.19_vite@4.1.2