Commit Graph

49 Commits

Author SHA1 Message Date
Martin Pulec
6b6070dcef AppRun: fixed exiting if TERM is not defined
tput returns non-zero if TERM is not set (eg. run by the CI check) and
shell is set to errexit (-e). (Previously the return value was hidden by
return value of calling echo).
2022-10-21 15:27:46 +02:00
Martin Pulec
762dbb0eae AppRun: colored output 2022-10-21 14:45:22 +02:00
Martin Pulec
fba27c434b Revert "AppRun: added libva-wayland to preload"
This reverts commit e687bd35ac.

This currently cause following error on Arch:

    expr: symbol lookup error: /lib/libva-wayland.so.2: undefined symbol: wl_proxy_marshal_flags
    id: symbol lookup error: /lib/libva-wayland.so.2: undefined symbol: wl_proxy_marshal_flags
2022-10-21 14:45:22 +02:00
Martin Pulec
e687bd35ac AppRun: added libva-wayland to preload
currently will not be used by CI because U18.04 doesn't link that
library
2022-10-11 16:22:54 +02:00
Martin Pulec
6ceec5edc3 AppRun: whitelist also file=
- rewritten - allow also multiple whitelisted patterns on cmdline
- whitelist every "file=" (midi) and "filename=" occurences
2022-09-13 16:36:33 +02:00
Martin Pulec
14489deb0a AppImage: set TMPDIR to a writable path 2022-09-12 16:44:05 +02:00
Martin Pulec
56ab0c5433 AppRun: fixed shellcheck complain 2022-09-12 16:44:05 +02:00
Martin Pulec
ad5c6bd2c2 AppImage: bundle libjack.so.0 again
This effectively reverts 3c9b8293.

libjack.so.0 is a dependency also for different modules like portaudio
so if we do not want to depend on instance in the system, we must ship
our version.
2022-07-27 09:05:56 +02:00
Martin Pulec
97dd5ceecb AppRun fixed libva-x11 not being LD_PRELOADED
In the second iteration of for cycle, $NAME was derived from something
like "/usr/lib/libva.so.2:/usr/lib/libva-drm.so.2"  (s/libva/libva-x11),
which obviously didn't exist as a file.

Fixes:

    $ <AppImage> --list-modules | grep -A 2 'Errors:'
    Errors:
            ultragrid_acompress_libavcodec.so
                    ./squashfs-root2/usr/lib/libva-x11.so.2: undefined symbol: va_fool_postp
2022-07-20 14:23:04 +02:00
Martin Pulec
9bbcefc240 AppRun (Linux): bundled libva selection improve 2022-07-20 14:22:57 +02:00
Martin Pulec
a9178a0eb1 Fixed AppImage showing "bin" dir as a tool 2022-06-01 11:21:57 +02:00
Martin Pulec
1cf8dde8b4 AppImage: Qt6 support 2022-05-30 15:38:49 +02:00
Martin Pulec
8bcaefec36 AppImage: do not use -t short opt for tool
'-t' is already used by UG (capture), which disallows use like:

    UltraGrid.AppUmage -t testcard

used '-o' instead
2022-05-12 13:37:02 +02:00
Martin Pulec
4cd5d9662f AppImage: tool selection improvements
- accept '-t' alongside '--tool'
- show accept -t/--tool help
- use bold font
2022-05-10 11:16:10 +02:00
Martin Pulec
93409cd85a Fixed AppImage -h displaying UG not AI help 2022-05-10 09:36:22 +02:00
Martin Pulec
7af87c935c Linux firejail: whitelist video (v4l2) 2022-04-01 14:13:46 +02:00
Martin Pulec
3a83770967 Fixed AppImage Firejail whitelist generation
Fixed 8e77dab6f

If no pattern was found, actually whole line was printed and
whitelisted, sample wrong input:

    UltraGrid-continuous-x86_64.AppImage -t testcard
2022-03-25 15:43:22 +01:00
Martin Pulec
8e77dab6ff Linux firejail: add some whitelists
Added explicit whitelist for --playback and -t testcard:filename
patterns.
2022-03-11 15:43:09 +01:00
Martin Pulec
e9fc1e0fda AppImage: check also ULTRAGRID_USE_FIREJAIL for 0 or no 2022-03-04 16:28:58 +01:00
Martin Pulec
a81b5b83fd AppRun: fixed shellcheck complains 2022-02-03 15:41:07 +01:00
Martin Pulec
1873392fa7 Linux AppImage: copy DejaVu Sans+Mono Book+Bold
Copy DejaVu Sans+Mono Book+Bold explicitly + pass it a variable
UG_FONT_DIR to UltraGrid.
2022-01-21 15:09:31 +01:00
Martin Pulec
4870b8f046 AppImage: font location <ai>/usr/share/fonts
Changed font location to <appimage>/usr/share/fonts - this is more
convenient location than <appimage>/usr/lib/fonts.
2022-01-21 10:26:52 +01:00
Martin Pulec
33cb1812a9 AppImage: env var ULTRAGRID_BUNDLED_LIBVA
to enforce use of bundled libva even if system libva found
2021-12-02 12:19:15 +01:00
Martin Pulec
c8722969b6 AppImage: pass LD_PRELOAD to the Firejail
needed if VA-API is preloaded from system
2021-11-30 11:34:38 +01:00
Martin Pulec
369341c3d0 AppImage: try to preload libva
Resolve subissue #165 (https://github.com/CESNET/UltraGrid/issues/165#issuecomment-978772853)
by trying to preload system libva if there is any.
2021-11-30 09:27:40 +01:00
Martin Pulec
6853dbc0af AppImage: do not print path to firejail to console 2021-08-06 11:47:11 +02:00
Martin Pulec
0a0e4da288 AppImage: bundle also VAAPI drivers 2021-07-13 15:10:53 +02:00
Martin Pulec
725daf7cb9 AppImage Firejail: use dbus support only if available
+ explicit check for firejail binary
+ use --keep-var-tmp only if available
2021-06-08 16:04:36 +02:00
Martin Pulec
10e194eaef AppImage Firejail: pass LD_LIBRARY_PATH 2021-06-08 08:40:14 +02:00
Martin Pulec
44c2559780 Firejail: PCP requires --protocol=netlink 2021-06-07 09:49:42 +02:00
Martin Pulec
cbb6a20ce1 AppImage: added --fullhelp 2021-06-03 13:23:16 +02:00
Martin Pulec
930ccd1ebc AppImage: env var to run with Firejail 2021-06-03 13:22:41 +02:00
Martin Pulec
b850ff0eb2 AppImage: get rid of uv-wrapper.sh
AppRun already adds <dir>/usr/lib to LD_LIBRARY_PATH.
2021-06-02 09:31:46 +02:00
Martin Pulec
1c8f968934 AppImage: option to show manual pages 2021-05-31 14:05:01 +02:00
Martin Pulec
bee6bf675b Restruct AppImage: store files in $APP/usr
Follow the usuall AppImage pattern using the prefix $APP/usr instead of
the AppDir root directly for program data.
2021-05-20 11:43:59 +02:00
Martin Pulec
35b2209de4 Linux AppImage: increase suggested update interval
Increased suggested update interval to 30 for continuous and 90 for
release - the original interval is of course advisable but 7 days for
continuous is a bit intrusive. Consequently scaling also release update
interval.
2021-05-14 23:53:00 +02:00
Martin Pulec
ed71c9c35b Linux AppImage: fixed update check hint command 2021-05-14 23:21:18 +02:00
Martin Pulec
079a318d94 AppImage: check timestamp of AppImage + touch it
This prevents notifying user to update when there are no updates
upstream but user checks for them.
2021-03-25 15:13:03 +01:00
Martin Pulec
67012b38cf AppImage: allow run also from extracted AppImage 2021-03-09 08:14:34 +01:00
Martin Pulec
956685be39 AppRun: use %Y rather than %W for stat
Creation time may be undefined
2021-03-05 12:55:41 +01:00
Martin Pulec
f08bdbc144 AppRun: replace UltraGrid with actual AppImage path 2021-03-03 09:40:24 +01:00
Martin Pulec
4c41383d92 Added update hint to AppImage + ULTRAGRID_AUTOUPDATE
Notify user after specified number of days (35; 7 for continuous) to
check updates.

Honor environment variable ULTRAGRID_AUTOUPDATE - 0 disables the hint;
1 causes the update to be always checked.
2021-03-03 09:03:30 +01:00
Martin Pulec
55e06c8f8f AppRun: unset LD_LIBRARY_PATH
To avoid mixing of UG and update tool libraries

+ missing quotes around $@
2021-03-02 11:58:00 +01:00
Martin Pulec
0d53b21583 Fixed AppRun 2021-03-02 11:44:02 +01:00
Martin Pulec
00805a5f55 AppImage: allow arguments to appimageupdatetool 2021-03-02 10:11:39 +01:00
Martin Pulec
a3cc07f929 Updated create-appimage.sh
Now it doesn't required neither GUI nor --enable-plugins and is more
friendly to command-line use.

+ documented a bit
2021-03-02 09:55:54 +01:00
Martin Pulec
0730a36796 CI: Linux - copy all plugins 2020-03-19 09:53:32 +01:00
Martin Pulec
57ccfea8bc Linux AppImage: bundle dynamically Qt + fixes
- AppImage: do not symlink icon
- use fontconfig to get DejaVu font path
2020-03-19 09:53:31 +01:00
Martin Pulec
e3247a0880 CI: Linux - build AppImage 2020-03-19 09:53:24 +01:00