diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ef8a582..0de552e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,5 +11,4 @@ build:
paths:
- $CI_PROJECT_DIR/dist/*.*
script:
- - sed "s/0.0.0/${VERSION_ID}/g" package.json > _package.json && mv _package.json package.json
- - yarn && yarn electron:build
+ - yarn dist
diff --git a/electron.builder.yml b/electron.builder.yml
new file mode 100644
index 0000000..2590695
--- /dev/null
+++ b/electron.builder.yml
@@ -0,0 +1,51 @@
+electronVersion: 9.0.0
+compression: normal
+npmRebuild: false
+# TODO: enable this in the future once we sign all the linux builds.
+#forceCodeSigning: true
+directories:
+ output: dist
+ buildResources: build
+ app: .
+
+mac:
+ category: Reference
+ icon: ./icons/icon.icns
+ target:
+ - target: dmg
+ - target: zip
+
+ # steps for notarizing the MacOS builds:
+ # https://kilianvalkhof.com/2019/electron/notarizing-your-electron-application/
+
+ hardenedRuntime: true
+ gatekeeperAssess: false
+ entitlements: build/macos/entitlements.mac.plist
+ entitlementsInherit: build/macos/entitlements.mac.plist
+
+dmg:
+ # The inner app inside the .dmg is signed and there is some broken logic
+ # which requires that the DMG itself is not signed.
+ sign: false
+
+
+nsis:
+ artifactName: ${name}-${version}-${arch}.${ext}
+
+appx:
+ artifactName: ${name}-${version}-${arch}.${ext}
+ applicationId: polar
+ identityName: 25130KevinBurton.PolarBookshelf
+ publisher: CN=D3591277-F57D-4C75-B342-D158E6C4AAF5
+ publisherDisplayName: Kevin Burton
+
+
+# https://www.electron.build/configuration/publish
+# https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/
+publish:
+ provider: github
+ publishAutoUpdate: true
+
+asar: true
+afterPack: "./electron-builder-afterpack.js"
+afterSign: "./build/macos/notarize.js"
diff --git a/package.json b/package.json
index 7117a2c..587010a 100644
--- a/package.json
+++ b/package.json
@@ -7,7 +7,7 @@
"author": {
"name": "Enrique Hernandez"
},
- "main": "background.js",
+ "main": "./src/background.ts",
"scripts": {
"dev": "yarn electron:serve",
"serve": "vue-cli-service serve",
@@ -17,7 +17,8 @@
"electron:build": "vue-cli-service electron:build",
"electron:serve": "vue-cli-service electron:serve",
"postinstall": "electron-builder install-app-deps",
- "postuninstal": "electron-builder install-app-deps"
+ "postuninstal": "electron-builder install-app-deps",
+ "dist":"electron-builder --publish always"
},
"dependencies": {
"@google-cloud/speech": "^4.2.0",
diff --git a/src/App.vue b/src/App.vue
index a8247ea..320b62f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -6,19 +6,19 @@
-
@@ -28,7 +28,7 @@
-
+