Skip to content

Commit

Permalink
Added libxcb-cursor for Linux Mint (#28)
Browse files Browse the repository at this point in the history
can the workflow be triggered manually?
  • Loading branch information
andreasgriffin authored Nov 10, 2024
1 parent 9159c54 commit 2871058
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 11 deletions.
58 changes: 53 additions & 5 deletions .github/workflows/build-appimage-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Build AppImage Test

on:
workflow_dispatch:
pull_request:
types: [labeled]
branches:
- main
inputs:
tags:
description: 'Test Build AppImage'
required: false
type: boolean

jobs:
build:
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.label.name == 'run-build-test')
runs-on: ubuntu-latest
- name: Checkout repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -64,3 +64,51 @@ jobs:
echo "AppImage file is missing"
exit 1
fi
# - name: Install Dependencies for gui test
# run: |
# sudo apt-get update
# sudo apt-get install -y xvfb libfuse2 xdotool
# shell: bash

# - name: Start Xvfb
# run: Xvfb :99 -screen 0 1024x768x16 &
# env:
# DISPLAY: ":99"

# - name: Run AppImage
# run: |
# APPIMAGE=$(find ./dist -maxdepth 1 -name "*.AppImage" | head -n 1)
# if [ -z "$APPIMAGE" ]; then
# echo "No AppImage file found in ./dist/"
# exit 1
# fi
# echo "Running AppImage: $APPIMAGE"
# chmod +x "$APPIMAGE"
# "$APPIMAGE" &
# env:
# DISPLAY: ":99"


# - name: Wait for Application to Start
# run: sleep 5

# - name: Check for Application Window
# run: |
# WINDOW_NAME="Bitcoin Safe"
# WINDOW_ID=$(xdotool search --name "$WINDOW_NAME")
# if [ -z "$WINDOW_ID" ]; then
# echo "Application window not found."
# exit 1
# else
# echo "Application window found with ID: $WINDOW_ID"
# fi
# env:
# DISPLAY: ":99"

# - name: Close Application
# run: |
# xdotool search --name "Bitcoin Safe" windowkill %@ || true
# env:
# DISPLAY: ":99"
10 changes: 5 additions & 5 deletions .github/workflows/build-windows-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Build Windows Test

on:
workflow_dispatch:
pull_request:
types: [labeled]
branches:
- main
inputs:
tags:
description: 'Test Build AppImage'
required: false
type: boolean

jobs:
build:
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.label.name == 'run-build-test')
runs-on: ubuntu-latest
- name: Checkout repository
uses: actions/checkout@v3
Expand Down
3 changes: 2 additions & 1 deletion tools/build-linux/appimage/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ RUN apt-get update -q && \
libzbar0 \
libsecp256k1-0

# other
# other needed for systems that lack libxcb by default (linux Mint)
RUN apt-get update -q && \
apt-get install -qy \
libxkbcommon-x11-0 \
Expand All @@ -104,6 +104,7 @@ RUN apt-get update -q && \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-cursor-dev \
libxcb-util1 \
libxcb-render-util0 \
libx11-xcb1 \
Expand Down

0 comments on commit 2871058

Please sign in to comment.