From 296ef93ecbbba3cc755b7b4825e72e45bf9ac484 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Thu, 30 Jul 2020 10:54:35 -0400 Subject: [PATCH 1/4] Installer for rpi --- app/package-lock.json | 2 +- app/scripts/build_rpi.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 app/scripts/build_rpi.sh diff --git a/app/package-lock.json b/app/package-lock.json index 7878967..71c95a0 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -1,6 +1,6 @@ { "name": "mcopy-app", - "version": "1.6.2", + "version": "1.6.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/app/scripts/build_rpi.sh b/app/scripts/build_rpi.sh new file mode 100644 index 0000000..a91b23f --- /dev/null +++ b/app/scripts/build_rpi.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +#package app +./node_modules/.bin/electron-packager . mcopy-app --overwrite --platform=linux --arch=armhf --icon=assets/icons/icon.png --prune=true --out=../dist +#build a .deb installer +./node_modules/.bin/electron-installer-debian --src ../dist/mcopy-app-linux-armhf/ --arch armhf --config ./scripts/build_linux.json \ No newline at end of file From 948b20feadf389efdcd8186d77e80c825ecee515 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Thu, 30 Jul 2020 11:01:57 -0400 Subject: [PATCH 2/4] Install dependencies for rpi. Package as armv71 for raspberry pi --- app/scripts/build_rpi.sh | 4 ++-- app/scripts/rpi_dependencies.sh | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 app/scripts/rpi_dependencies.sh diff --git a/app/scripts/build_rpi.sh b/app/scripts/build_rpi.sh index a91b23f..e911a1b 100644 --- a/app/scripts/build_rpi.sh +++ b/app/scripts/build_rpi.sh @@ -1,6 +1,6 @@ #!/bin/bash #package app -./node_modules/.bin/electron-packager . mcopy-app --overwrite --platform=linux --arch=armhf --icon=assets/icons/icon.png --prune=true --out=../dist +./node_modules/.bin/electron-packager . mcopy-app --overwrite --platform=linux --arch=armv71 --icon=assets/icons/icon.png --prune=true --out=../dist #build a .deb installer -./node_modules/.bin/electron-installer-debian --src ../dist/mcopy-app-linux-armhf/ --arch armhf --config ./scripts/build_linux.json \ No newline at end of file +./node_modules/.bin/electron-installer-debian --src ../dist/mcopy-app-linux-armv71/ --arch armv71 --config ./scripts/build_linux.json \ No newline at end of file diff --git a/app/scripts/rpi_dependencies.sh b/app/scripts/rpi_dependencies.sh new file mode 100644 index 0000000..0fdb541 --- /dev/null +++ b/app/scripts/rpi_dependencies.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +sudo apt install libgtk-3-0 libnotify4 libnss3 libxss1 libxtst6 libatspi2.0-0 libuuid1 -y \ No newline at end of file From 7e516a59b65257ec75e6486e6fd01234781a5fe4 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Thu, 30 Jul 2020 11:04:02 -0400 Subject: [PATCH 3/4] Wrong arch again --- app/scripts/build_rpi.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scripts/build_rpi.sh b/app/scripts/build_rpi.sh index e911a1b..d068764 100644 --- a/app/scripts/build_rpi.sh +++ b/app/scripts/build_rpi.sh @@ -1,6 +1,6 @@ #!/bin/bash #package app -./node_modules/.bin/electron-packager . mcopy-app --overwrite --platform=linux --arch=armv71 --icon=assets/icons/icon.png --prune=true --out=../dist +./node_modules/.bin/electron-packager . mcopy-app --overwrite --platform=linux --arch=armv7l --icon=assets/icons/icon.png --prune=true --out=../dist #build a .deb installer -./node_modules/.bin/electron-installer-debian --src ../dist/mcopy-app-linux-armv71/ --arch armv71 --config ./scripts/build_linux.json \ No newline at end of file +./node_modules/.bin/electron-installer-debian --src ../dist/mcopy-app-linux-armv7l/ --arch armv7l --config ./scripts/build_linux.json \ No newline at end of file From 5e6fbbb43cd0838aafb9becd7b3ee88b9fa53cb8 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Thu, 30 Jul 2020 11:28:11 -0400 Subject: [PATCH 4/4] Add armv7l architecture to dpkg for Raspian. --- app/scripts/rpi_dependencies.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/scripts/rpi_dependencies.sh b/app/scripts/rpi_dependencies.sh index 0fdb541..44b3483 100644 --- a/app/scripts/rpi_dependencies.sh +++ b/app/scripts/rpi_dependencies.sh @@ -1,3 +1,4 @@ #!/bin/bash -sudo apt install libgtk-3-0 libnotify4 libnss3 libxss1 libxtst6 libatspi2.0-0 libuuid1 -y \ No newline at end of file +sudo apt install libgtk-3-0 libnotify4 libnss3 libxss1 libxtst6 libatspi2.0-0 libuuid1 -y +sudo dpkg --add-architecture armv7l \ No newline at end of file