Skip to content

Commit fc059c2

Browse files
committed
feat: create .snap and app image for linux
Signed-off-by: Dominikus Hellgartner <dominikus.hellgartner@tngtech.com>
1 parent 58480eb commit fc059c2

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
"update-commit-hash:darwin:linux": "COMMIT_INFO=$(git describe --exact-match --tags 2> /dev/null || git rev-parse --short HEAD); echo \"{\\\"commitInfo\\\" : \\\"$COMMIT_INFO\\\" }\" > \"src/commitInfo.json\"",
132132
"update-commit-hash:win32": "tools/get_app_version_for_windows.bat",
133133
"generate-notice": "mkdirp notices && yarn licenses generate-disclaimer --production > notices/notices.txt && yarn node tools/generateNotices.js",
134-
"ship-linux": "yarn build && electron-builder --linux --x64 --publish never && mkdir -p release/linux && mv 'release/OpossumUI-0.1.0.AppImage' 'release/linux/OpossumUI-for-linux.AppImage'",
134+
"ship-linux": "yarn build && tools/build_linux_release.sh",
135135
"ship-win": "yarn build && electron-builder --win --x64 --publish never && mkdirp release/win && mv \"release/OpossumUI Setup 0.1.0.exe\" \"release/win/OpossumUI-for-win.exe\"",
136136
"ship-mac": "yarn build && electron-builder --mac --x64 --publish never && zip -r -y -q 'release/mac/OpossumUI-for-mac.zip' 'release/mac/'",
137137
"ship": "yarn ship-linux && yarn ship-win && yarn ship-mac",
@@ -164,7 +164,10 @@
164164
"icon": "public/icons/icon_512x512.png"
165165
},
166166
"linux": {
167-
"target": "AppImage",
167+
"target": [
168+
"snap",
169+
"AppImage"
170+
],
168171
"icon": "public/icons/icon_512x512.png"
169172
},
170173
"extraMetadata": {

tools/build_linux_release.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
# SPDX-FileCopyrightText: Meta Platforms, Inc. and its affiliates
4+
# SPDX-FileCopyrightText: TNG Technology Consulting GmbH<https://www.tngtech.com>
5+
#
6+
# SPDX-License-Identifier: Apache-2.0
7+
8+
set -e
9+
10+
electron-builder --linux --x64 --publish never
11+
mkdir -p release/linux
12+
mv 'release/opossum-ui_0.1.0_amd64.snap' 'release/linux/OpossumUI-for-linux.snap'
13+
mv 'release/OpossumUI-0.1.0.AppImage' 'release/linux/OpossumUI-for-linux.AppImage'

0 commit comments

Comments
 (0)