From a78a73678ba97fbbabc28c659a826b601fe8aea6 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Thu, 9 May 2019 20:25:14 +0100 Subject: [PATCH 1/2] Override fpm to set arch to armhf --- app/builder-config-raspi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/builder-config-raspi.yaml b/app/builder-config-raspi.yaml index e54d1df2..a9aa9f5f 100644 --- a/app/builder-config-raspi.yaml +++ b/app/builder-config-raspi.yaml @@ -1,7 +1,6 @@ extends: app/builder-config-base.yaml linux: target: - - AppImage - target: deb arch: - armv7l @@ -9,4 +8,5 @@ linux: category: Science deb: category: Science + fpm: ['--architecture', 'armhf'] electronVersion: 3.0.13 From ab72165db7cd9ed0fd3ea9645cbc9f91eafcd82a Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Fri, 10 May 2019 09:12:45 +0100 Subject: [PATCH 2/2] Close GPU preview on exit --- src/App.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/App.vue b/src/App.vue index 4718b53f..ce4a0bd2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -63,6 +63,8 @@ export default { window.addEventListener('resize', this.handleResize) this.handleResize(); + + window.addEventListener('beforeunload', this.handleExit) }, beforeDestroy: function () { @@ -73,6 +75,11 @@ export default { handleResize: function(event) { this.window.width = window.innerWidth; this.window.height = window.innerHeight; + }, + + handleExit: function(event) { + console.log("Triggered beforeunload") + this.$root.$emit('globalTogglePreview', false) } }