@ascua/electron 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,8 @@ const Command = require('ember-cli/lib/commands/build');
9
9
  const { log } = require('builder-util');
10
10
 
11
11
  const APPLE_ID = process.env.APPLE_ID;
12
- const APPLE_PASSWORD = process.env.APPLE_PASSWORD;
12
+ const APPLE_TEAMID = process.env.APPLE_TEAMID;
13
+ const APPLE_PASSWORD = process.env.APPLE_APP_SPECIFIC_PASSWORD;
13
14
 
14
15
  module.exports = Command.extend({
15
16
 
@@ -86,7 +87,7 @@ module.exports = Command.extend({
86
87
 
87
88
  const appId = this.project.pkg.build.appId;
88
89
 
89
- return this._super(...arguments).then( () => {
90
+ return this._super(...arguments).then(() => {
90
91
 
91
92
  const arch = {
92
93
  x64: options.x64,
@@ -147,14 +148,16 @@ module.exports = Command.extend({
147
148
 
148
149
  let appPath = path.join(params.appOutDir, `${params.packager.appInfo.productFilename}.app`);
149
150
 
150
- if ( fs.existsSync(appPath) ) {
151
+ if (fs.existsSync(appPath)) {
151
152
 
152
153
  log.info({ appId, appPath }, "notarizing");
153
154
 
154
155
  return await Notarizer.notarize({
156
+ tool: 'notarytool',
155
157
  appBundleId: appId,
156
158
  appPath: appPath,
157
159
  appleId: APPLE_ID,
160
+ teamId: APPLE_TEAMID,
158
161
  appleIdPassword: APPLE_PASSWORD,
159
162
  });
160
163
 
@@ -171,16 +174,18 @@ module.exports = Command.extend({
171
174
 
172
175
  if (APPLE_ID && APPLE_PASSWORD) {
173
176
 
174
- let dmgPath = params.artifactPaths.find( p => p.endsWith(".dmg") );
177
+ let dmgPath = params.artifactPaths.find(p => p.endsWith(".dmg"));
175
178
 
176
- if ( fs.existsSync(dmgPath) ) {
179
+ if (fs.existsSync(dmgPath)) {
177
180
 
178
181
  log.info({ appId, dmgPath }, "notarizing");
179
182
 
180
183
  return await Dmgerizer.notarize({
184
+ tool: 'notarytool',
181
185
  appBundleId: appId,
182
186
  dmgPath: dmgPath,
183
187
  appleId: APPLE_ID,
188
+ teamId: APPLE_TEAMID,
184
189
  appleIdPassword: APPLE_PASSWORD,
185
190
  });
186
191
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ascua/electron",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Small description for @ascua/electron goes here",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -15,8 +15,8 @@
15
15
  "url": "https://abcum.com"
16
16
  },
17
17
  "dependencies": {
18
- "@ascua/config": "^0.1.2",
19
- "@ascua/service": "^0.1.2",
18
+ "@ascua/config": "^0.1.4",
19
+ "@ascua/service": "^0.1.4",
20
20
  "@electron/notarize": "^2.1.0",
21
21
  "builder-util": "^24.8.1",
22
22
  "electron": "27.0.3",
@@ -34,5 +34,5 @@
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "5b10d41bfc63043681ddd2f270ef6331c392c1b7"
37
+ "gitHead": "3d18b81d01810f133bb73a18c516aee7bebfd830"
38
38
  }