fix(snap): preserve payload layout
Snapcraft strips the sole usr directory from tar sources, so extract the artifact directly and retain its desktop-file path.\n\nAdd a snap-only manual target to avoid rebuilding other platforms while validating packaging fixes.
This commit is contained in:
parent
2d9b828b87
commit
ca959a31e0
2 changed files with 15 additions and 2 deletions
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
|
|
@ -4,6 +4,15 @@ on:
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
target:
|
||||||
|
description: Build target
|
||||||
|
required: true
|
||||||
|
default: all
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- all
|
||||||
|
- snap
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-appimage:
|
build-appimage:
|
||||||
|
|
@ -149,6 +158,7 @@ jobs:
|
||||||
release: edge
|
release: edge
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
|
if: github.event_name == 'release' || inputs.target == 'all'
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
@ -291,6 +301,7 @@ jobs:
|
||||||
--clobber --repo ${{ github.repository }}
|
--clobber --repo ${{ github.repository }}
|
||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
|
if: github.event_name == 'release' || inputs.target == 'all'
|
||||||
runs-on: macos-14 # Apple Silicon (arm64) only
|
runs-on: macos-14 # Apple Silicon (arm64) only
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
|
||||||
|
|
@ -70,8 +70,10 @@ apps:
|
||||||
|
|
||||||
parts:
|
parts:
|
||||||
open-cad-studio:
|
open-cad-studio:
|
||||||
plugin: dump
|
plugin: nil
|
||||||
source: linux-payload.tar.gz
|
override-build: |
|
||||||
|
mkdir -p "${CRAFT_PART_INSTALL}"
|
||||||
|
tar -xzf "${CRAFT_PROJECT_DIR}/linux-payload.tar.gz" -C "${CRAFT_PART_INSTALL}"
|
||||||
stage-packages:
|
stage-packages:
|
||||||
- libxcursor1
|
- libxcursor1
|
||||||
- libxi6
|
- libxi6
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue