Skip to content

Commit d6a3593

Browse files
authored
fix(github-actions): docker and electron build and publish fix (#189)
1 parent 9212830 commit d6a3593

File tree

5 files changed

+11
-99
lines changed

5 files changed

+11
-99
lines changed

.github/workflows/docker-build-and-publish.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
uses: docker/build-push-action@v5
7575
with:
7676
context: webapp/.
77-
platforms: linux/amd64,linux/arm64
77+
platforms: linux/amd64
7878
push: true
7979
tags: |
8080
${{ env.REGISTRY_IMAGE_WEBAPP }}:${{ env.RELEASE_TAG }}

.github/workflows/electron-build-and-publish.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949

5050
- name: Install snapcraft on Ubuntu
5151
if: matrix.os == 'ubuntu-latest'
52-
run: sudo snap install snap
52+
run: sudo snap install snapcraft --classic
5353

5454
- name: Build electron app
5555
run: |

webapp/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /root/
44

55
COPY ./build ./build
66
COPY package*.json ./
7-
RUN npm install -g phantomjs-prebuilt && npm install --omit=dev && npm install express
7+
RUN npm install --omit=dev && npm install express
88
COPY server.js ./
99

1010
EXPOSE 3001

webapp/package-lock.json

+7-93
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webapp/package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webapp",
3-
"version": "1.0.2",
3+
"version": "1.0.5",
44
"main": "electron.js",
55
"scripts": {
66
"ng": "ng",
@@ -33,8 +33,6 @@
3333
"bootstrap": "^5.1.3",
3434
"clipboard": "^2.0.11",
3535
"dotenv": "^5.0.0",
36-
"electron-log": "^4.4.7",
37-
"electron-updater": "^5.0.1",
3836
"font-awesome": "^4.7.0",
3937
"jwt-decode": "^3.1.2",
4038
"katex": "^0.16.21",

0 commit comments

Comments
 (0)