Skip to content

Commit

Permalink
Fix rpm dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nroduit committed Nov 20, 2023
1 parent 9a6a686 commit bf09f16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,12 @@ jobs:
declare -a installerTypes=("deb" "rpm")
fi
for installerType in ${installerTypes[@]}; do
[ "${installerType}" = "rpm" ] && DEPENDENCIES="" || DEPENDENCIES="libstdc++6, libgcc1"
jpackage --type "${installerType}" --app-image "${{ env.WEASIS_OUTPUT }}/${{ env.NAME }}" --dest "${{ env.WEASIS_OUTPUT }}" --name "${{ env.NAME }}" --resource-dir "${{ env.RES }}" \
--license-file "${{ env.WEASIS_INPUT }}/Licence.txt" --description "Weasis DICOM viewer" --vendor "${{ env.VENDOR }}" \
--copyright "${{ env.COPYRIGHT }}" --app-version "${{ env.WEASIS_CLEAN_VERSION }}" --file-associations "${{ env.FILE_ASSOC }}" \
--linux-app-release "1" --linux-package-name "weasis" --linux-deb-maintainer "Nicolas Roduit" --linux-rpm-license-type "EPL-2.0" \
--linux-menu-group "Viewer;MedicalSoftware;Graphics;" --linux-app-category "science" --linux-package-deps "libstdc++6, libgcc1" --linux-shortcut --verbose
--linux-menu-group "Viewer;MedicalSoftware;Graphics;" --linux-app-category "science" --linux-package-deps "${DEPENDENCIES}" --linux-shortcut --verbose
cp ${{ env.WEASIS_OUTPUT }}/*.${installerType} final-dist
done
elif [ "$machine" = "macosx" ] ; then
Expand Down
4 changes: 2 additions & 2 deletions weasis-distributions/script/package-weasis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -259,12 +259,12 @@ if [ "$PACKAGE" = "YES" ] ; then
elif [ "$machine" = "linux" ] ; then
declare -a installerTypes=("deb" "rpm")
for installerType in "${installerTypes[@]}"; do
[ "$installerType" = "deb" ] && pkgDependencies="libstdc++6, libgcc1" || pkgDependencies=""
[ "${installerType}" = "rpm" ] && DEPENDENCIES="" || DEPENDENCIES="libstdc++6, libgcc1"
$JPKGCMD --type "$installerType" --app-image "$IMAGE_PATH" --dest "$OUTPUT_PATH" --name "$NAME" --resource-dir "$RES" \
--license-file "$INPUT_PATH/Licence.txt" --description "Weasis DICOM viewer" --vendor "$VENDOR" \
--copyright "$COPYRIGHT" --app-version "$WEASIS_CLEAN_VERSION" --file-associations "${curPath}/file-associations.properties" \
--linux-app-release "$REVISON_INC" --linux-package-name "weasis" --linux-deb-maintainer "Nicolas Roduit" --linux-rpm-license-type "EPL-2.0" \
--linux-menu-group "Viewer;MedicalSoftware;Graphics;" --linux-app-category "science" --linux-package-deps "$pkgDependencies" \
--linux-menu-group "Viewer;MedicalSoftware;Graphics;" --linux-app-category "science" --linux-package-deps "${DEPENDENCIES}" \
--linux-shortcut "${tmpArgs[@]}" --verbose
if [ -d "${TEMP_PATH}" ] ; then
rm -rf "${TEMP_PATH}"
Expand Down

0 comments on commit bf09f16

Please sign in to comment.