forked from ShiftLeftSecurity/sast-scan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appimage-builder.yml
89 lines (84 loc) · 3.23 KB
/
appimage-builder.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: 1
script:
- chmod +x ./appimage-reqs.sh && APPIMAGE=true ./appimage-reqs.sh $(pwd)/AppDir
- cp -r /usr/share/icons/Adwaita AppDir/usr/share/icons/
- cp $(pwd)/AppDir/usr/share/icons/Adwaita/scalable/apps/utilities-terminal-symbolic.svg $(pwd)/AppDir/usr/share/icons/utilities-terminal.svg
- cp $(pwd)/AppDir/usr/share/icons/Adwaita/scalable/apps/utilities-terminal-symbolic.svg $(pwd)/AppDir/usr/share/icons/Adwaita/scalable/apps/utilities-terminal.svg
AppDir:
path: ./AppDir
app_info:
id: io.shiftleft.scan
name: scan
icon: utilities-terminal
version: latest
# Set the python executable as entry point
exec: usr/bin/python3
# Set the application main script path as argument. Use '$@' to forward CLI parameters
exec_args: "$APPDIR/usr/src/scan $@"
apt:
arch: amd64
sources:
- sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse'
key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920D1991BC93C'
- sourceline: deb [arch=amd64] https://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920D1991BC93C'
- sourceline: deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920D1991BC93C'
include:
- python3
- python3-pkg-resources
- python3-yaml
- python3-requests
- python3-urllib3
- libyaml-0-2
- git
- php
- php-json
- php-pear
- php-mbstring
- tar
files:
exclude:
- usr/share/man
- usr/share/doc/*/README.*
- usr/share/doc/*/changelog.*
- usr/share/doc/*/NEWS.*
- usr/share/doc/*/TODO.*
runtime:
env:
PATH: '${APPDIR}/usr/bin:${APPDIR}/usr/bin/nodejs/bin:${PATH}:${APPDIR}/opt/phpsast/vendor/bin:${APPDIR}/usr/local/lib/node_modules/.bin:'
PYTHONHOME: '${APPDIR}/usr'
PYTHONPATH: '${APPDIR}/usr/lib/python3.10/site-packages:$APPDIR/usr/lib/python3.10:$APPDIR/usr/lib/python3.10/lib-dynload'
SSL_CERT_FILE: '${APPDIR}/usr/lib/python3.10/site-packages/certifi/cacert.pem'
PYTHONUNBUFFERED: '1'
APP_SRC_DIR: '${APPDIR}/usr/src'
TOOLS_CONFIG_DIR: '${APPDIR}/usr/src/tools_config'
DEPSCAN_CMD: '${APPDIR}/usr/bin/depscan'
PMD_CMD: '${APPDIR}/opt/pmd-bin/bin/run.sh pmd'
SPOTBUGS_HOME: '${APPDIR}/opt/spotbugs'
DETEKT_JAR: '${APPDIR}/usr/bin/detekt-cli.jar'
test:
fedora:
image: appimagecrafters/tests-env:fedora-30
command: ./AppRun --help
use_host_x: true
debian:
image: appimagecrafters/tests-env:debian-stable
command: ./AppRun --help
use_host_x: true
arch:
image: appimagecrafters/tests-env:archlinux-latest
command: ./AppRun --help
use_host_x: true
centos:
image: appimagecrafters/tests-env:centos-7
command: ./AppRun --help
use_host_x: true
ubuntu:
image: appimagecrafters/tests-env:ubuntu-xenial
command: ./AppRun --help
use_host_x: true
AppImage:
update-information: !ENV ${UPDATE_INFO}
sign-key: None
arch: x86_64