tanjera / infirmary-integrated

Medical device simulator for training healthcare professionals.
http://www.infirmary-integrated.com/
Other
40 stars 5 forks source link

Automated RPM Building has file list statically coded #163

Closed tanjera closed 1 year ago

tanjera commented 1 year ago

In publishing-linux.sh @ preparation of .spec file

Currently:

    RPM_TARGET_SPEC="$RPMBUILD_DIR/SPECS/infirmary-integrated.spec"
    printf "Version: $VERSION\n" >> "$RPM_TARGET_SPEC"
    cat "$RPM_SPEC" >> "$RPM_TARGET_SPEC"

List of files provided by .rpm is hardcoded into .spec file. Needs to be auto-generated on running the script, or else inclusion of future file changes may break the process.

Difficulties noted:

tanjera commented 1 year ago

Also need to remove base folders (e.g. /usr/bin) from file list, otherwise rpm -ivh gives an error

tanjera commented 1 year ago

Fixed in https://github.com/tanjera/infirmary-integrated/commit/7f325efa20f8cee06e0a935df3136798e7205136