Skip to content

Commit

Permalink
fix rpm build
Browse files Browse the repository at this point in the history
- copy lib directory
- copy uenv-image
- install wget in container
  • Loading branch information
simonpintarelli committed Mar 15, 2024
1 parent 68bbd2f commit 009df5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- name: setup-environment
run: |
zypper install -y libmount-devel gcc make rpm-build git sudo python3
zypper install -y libmount-devel gcc make rpm-build git sudo python3 wget
- name: clone
uses: actions/checkout@v2
- name: build-srpm
Expand Down
2 changes: 2 additions & 0 deletions rpm/generate-rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ mkdir -p "${build_path}"
tar_path="${build_path}/${pkg_name}"
mkdir -p "${tar_path}"

cp -r "${source_path}/lib" "${tar_path}"
cp "${source_path}/install" "${tar_path}"
cp "${source_path}/VERSION" "${tar_path}"
cp "${source_path}/activate" "${tar_path}"
cp "${source_path}/uenv-impl" "${tar_path}"
cp "${source_path}/uenv-image" "${tar_path}"

tar_file="${build_path}/SOURCES/${pkg_name}.tar.gz"
tar -czf "${tar_file}" --directory "${build_path}" "${pkg_name}"
Expand Down

0 comments on commit 009df5a

Please sign in to comment.