Skip to content

Commit

Permalink
Use archive mode for cp
Browse files Browse the repository at this point in the history
- This will help ensure the file copies in to the Flatpak perserve as
  much metadata and intended filesystem layout as possible
  • Loading branch information
rmartin16 committed Mar 10, 2024
1 parent 91d89c1 commit 0dc696f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions {{ cookiecutter.format }}/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ modules:
buildsystem: simple
build-commands:
- mkdir -p /app/bin
- cp -r support/python/bin/* /app/bin
- cp --archive support/python/bin/* /app/bin
- mkdir -p /app/include
- cp -r support/python/include/* /app/include
- cp --archive support/python/include/* /app/include
- mkdir -p /app/lib
- cp -r support/python/lib/* /app/lib
- cp --archive support/python/lib/* /app/lib
# Update installation prefix for pip package builds
- sed --follow-symlinks -i 's/prefix="\/install"/prefix="\/app"/g' /app/bin/python3-config
- sed --follow-symlinks -i 's/prefix=\/install/prefix=\/app/g' /app/lib/pkgconfig/python3.pc /app/lib/pkgconfig/python3-embed.pc
Expand All @@ -45,7 +45,7 @@ modules:
buildsystem: simple
build-commands:
- install -D {{ cookiecutter.bundle_identifier }}.desktop /app/share/applications/{{ cookiecutter.bundle_identifier }}.desktop
- cp -r icons /app/share/icons
- cp --archive icons /app/share/icons
sources:
- type: file
path: {{ cookiecutter.bundle_identifier }}.desktop
Expand Down Expand Up @@ -86,7 +86,7 @@ modules:
no-debuginfo: true
build-commands:
- mkdir -p /app/briefcase
- cp -r src/app/ /app/briefcase/app
- cp --archive src/app/ /app/briefcase/app
sources:
- type: dir
path: src/app/
Expand Down

0 comments on commit 0dc696f

Please sign in to comment.