diff --git a/.github/workflows/build-appimage-test.yml b/.github/workflows/build-appimage-test.yml index ea4801e..b85b54a 100644 --- a/.github/workflows/build-appimage-test.yml +++ b/.github/workflows/build-appimage-test.yml @@ -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 @@ -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" \ No newline at end of file diff --git a/.github/workflows/build-windows-test.yml b/.github/workflows/build-windows-test.yml index d9dbea2..cd4efaa 100644 --- a/.github/workflows/build-windows-test.yml +++ b/.github/workflows/build-windows-test.yml @@ -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 diff --git a/tools/build-linux/appimage/Dockerfile b/tools/build-linux/appimage/Dockerfile index a9fa274..1fc994c 100644 --- a/tools/build-linux/appimage/Dockerfile +++ b/tools/build-linux/appimage/Dockerfile @@ -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 \ @@ -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 \