Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix rpm / install script #21

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.1
4.0.0
16 changes: 8 additions & 8 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -147,14 +147,14 @@ fi

echo "installing $lib_path"
run install -v -m755 -d "$lib_path"
run install -v -m644 -D -t "${destdir}/${lib_path}" lib/alps.py
run install -v -m644 -D -t "${destdir}/${lib_path}" lib/datastore.py
run install -v -m644 -D -t "${destdir}/${lib_path}" lib/flock.py
run install -v -m644 -D -t "${destdir}/${lib_path}" lib/jfrog.py
run install -v -m644 -D -t "${destdir}/${lib_path}" lib/names.py
run install -v -m644 -D -t "${destdir}/${lib_path}" lib/oras.py
run install -v -m644 -D -t "${destdir}/${lib_path}" lib/record.py
run install -v -m644 -D -t "${destdir}/${lib_path}" lib/terminal.py
run install -v -m644 -D -t "${destdir}/${lib_path}" ${script_path}/lib/alps.py
run install -v -m644 -D -t "${destdir}/${lib_path}" ${script_path}/lib/datastore.py
run install -v -m644 -D -t "${destdir}/${lib_path}" ${script_path}/lib/flock.py
run install -v -m644 -D -t "${destdir}/${lib_path}" ${script_path}/lib/jfrog.py
run install -v -m644 -D -t "${destdir}/${lib_path}" ${script_path}/lib/names.py
run install -v -m644 -D -t "${destdir}/${lib_path}" ${script_path}/lib/oras.py
run install -v -m644 -D -t "${destdir}/${lib_path}" ${script_path}/lib/record.py
run install -v -m644 -D -t "${destdir}/${lib_path}" ${script_path}/lib/terminal.py

echo "installing ${img_impl_path}"
run install -v -m755 -D "$script_path/uenv-image" "${destdir}/${img_impl_path}"
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
Loading