Skip to content

Commit

Permalink
fix: AppImage: add libgail, fixes #90 (#91)
Browse files Browse the repository at this point in the history
* fix: AppImage: add libgail, fixes #90

* chore: push action-gh-release from v1 to v2
  • Loading branch information
speed47 authored May 8, 2024
1 parent 42bb0a1 commit c32080d
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 12 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ jobs:
set +x
./configure ${{ matrix.clionly }} --with-werror
- name: make
run: make -j$(sysctl -n hw.ncpu || 2)
run: |
cat Makefile.config
make -j$(sysctl -n hw.ncpu || 2)
- name: check executability
run: ./dvdisaster --version
- name: check executable (GUI)
Expand All @@ -49,7 +51,7 @@ jobs:
run: ./.github/workflows/make-mac-app.sh ${{ github.ref }}
id: dist
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: ${{ steps.dist.outputs.archive }}
draft: true
Expand Down Expand Up @@ -112,7 +114,7 @@ jobs:
cd dist
dvdisaster.exe --version
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: ${{ steps.dist.outputs.archive }}
draft: true
Expand All @@ -138,7 +140,7 @@ jobs:
run: ./.github/workflows/make-dist.sh ${{ github.ref }}
id: dist
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: ${{ steps.dist.outputs.archive }}
draft: true
Expand All @@ -156,15 +158,17 @@ jobs:
mkdir -p /tmp/dist
docker run --device /dev/fuse --privileged --name uu -d -v $PWD:/code -v /tmp/dist:/dist ubuntu:14.04 sleep 1800
- name: install prerequisites in docker
run: docker exec uu sh -c 'sudo apt update && sudo apt install -y libglib2.0-dev ghostscript man libgtk2.0-dev gtk2-engines-pixbuf gtk2-engines pkg-config gnome-themes-standard fuse'
run: docker exec uu sh -c 'sudo apt update && sudo apt install -y libglib2.0-dev ghostscript man libgtk2.0-dev gtk2-engines-pixbuf gtk2-engines libgail-common pkg-config gnome-themes-standard fuse'
- name: configure in docker
run: docker exec uu sh -c 'cd /code && ./configure --prefix=/usr'
- name: make in docker
run: docker exec uu sh -c 'make -C /code -j$(nproc) && make -C /code'
- name: make install in docker
run: docker exec uu sh -c 'cd /code && touch documentation/user-manual/manual.pdf && make install DESTDIR=/dist'
- name: copy things to dist in docker
run: docker exec uu sh -c 'install -d /dist/usr/lib/gtk-2.0 && cp -va $(pkg-config --variable=libdir gtk+-2.0)/gtk-2.0/$(pkg-config --variable=gtk_binary_version gtk+-2.0)/* /dist/usr/lib/gtk-2.0'
run: |
docker exec uu sh -c 'install -d /dist/usr/lib/gtk-2.0 && cp -va $(pkg-config --variable=libdir gtk+-2.0)/gtk-2.0/$(pkg-config --variable=gtk_binary_version gtk+-2.0)/* /dist/usr/lib/gtk-2.0'
docker exec uu sh -c 'cp -va $(pkg-config --variable=libdir gtk+-2.0)/gtk-2.0/modules /dist/usr/lib/gtk-2.0/'
- name: build appimage in docker
run: |
wget -q https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
Expand Down Expand Up @@ -193,7 +197,7 @@ jobs:
echo "archive=$archive" >> "$GITHUB_OUTPUT"
echo "appimage is <$archive>"
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: ${{ steps.dist.outputs.archive }}
draft: true
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ jobs:
set +x
./configure ${{ matrix.clionly }} ${{ matrix.debugprintf }} --with-werror
- name: make
run: make -j$(sysctl -n hw.ncpu || 2)
run: |
cat Makefile.config
echo xxxxxxxxxxxxxxxxxxxxxxx
grep -i icon GNUmakefile
make -j$(sysctl -n hw.ncpu || 2)
- name: check executability
run: ./dvdisaster --version
- name: check executable (GUI)
Expand Down
4 changes: 2 additions & 2 deletions GNUmakefile.template
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ ${BUILDTMP}/build.o : src/build.c src/build.h
@echo "Compiling:" src/build.o
@$(CC) $(COPTS) -c src/build.c -o $@

${BUILDTMP}/closure.o : src/closure.c src/inlined-icons.h
${BUILDTMP}/closure.o : src/closure.c $(ICONS)
@echo "Compiling:" src/closure.c
@$(CC) $(COPTS) -c src/closure.c -o $@

${BUILDTMP}/icon-factory.o : src/icon-factory.c src/inlined-icons.h
${BUILDTMP}/icon-factory.o : src/icon-factory.c $(ICONS)
@echo "Compiling:" src/icon-factory.c
@$(CC) $(COPTS) -c src/icon-factory.c -o $@

Expand Down
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
BASH_BASED_CONFIGURE=./scripts/bash-based-configure
BASH_BASED_CONFIGURE_OPTS="--buildtmp=$(pwd)/build $@"
REQUIRED_CFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I. -pipe"
RECOMMENDED_CFLAGS="-O2 -fomit-frame-pointer -Wall -Wno-unknown-warning-option -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-format-zero-length"
RECOMMENDED_CFLAGS="-O2 -fomit-frame-pointer -Wall -Wno-unknown-warning-option -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-format-zero-length -Wno-unused-but-set-variable"
DEBUG_CFLAGS="-ggdb -Wall"

if test -e $BASH_BASED_CONFIGURE; then
Expand Down
5 changes: 4 additions & 1 deletion src/closure.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
/*** src type: some GUI code ***/

#include "dvdisaster.h"
#include "inlined-icons.h"

#ifdef WITH_GUI_YES
#include "inlined-icons.h"
#endif

#if 0
#define Verbose g_printf
Expand Down

0 comments on commit c32080d

Please sign in to comment.