File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed
Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -159,16 +159,19 @@ jobs:
159159 tar czvf packaged/bin/Open-Source-PyMOL-3.1.0.4.tar.gz packaged/build/Open-Source-PyMOL-3.1.0.4
160160 rm -r packaged/build
161161
162- - name : Build .deb package
162+ - name : Prepare packaging environment
163163 run : |
164- gem install fpm
164+ sudo apt install rpm -y
165+ sudo gem install fpm
165166 mkdir -p package-root/opt/Open-Source-PyMOL-3.1.0.4
166167 cp -r ./dist/exe.linux*/* package-root/opt/Open-Source-PyMOL-3.1.0.4/
167168 mkdir -p package-root/usr/bin
168169 ln -s /opt/Open-Source-PyMOL-3.1.0.4/Open-Source-PyMOL package-root/usr/bin/Open-Source-PyMOL
169170 mkdir -p package-root/usr/share/applications
170- cp os_specific/linux/open-source-pymol.desktop package-root/usr/share/applications
171-
171+ cp os_specific/linux/open-source-pymol.desktop package-root/usr/share/applications
172+
173+ - name : Build .deb package
174+ run : |
172175 fpm -s dir -t deb \
173176 -n open-source-pymol \
174177 -v 3.1.0.4 \
@@ -179,6 +182,18 @@ jobs:
179182 --maintainer "Martin Urban <martin.urban@studmail.w-hs.de>"
180183 cp open-source-pymol-3.1.0.4_amd64.deb ./packaged/bin/open-source-pymol-3.1.0.4_amd64.deb
181184
185+ - name : Build .rpm package
186+ run : |
187+ fpm -s dir -t rpm \
188+ -n open-source-pymol \
189+ -v 3.1.0.4 \
190+ -a amd64 \
191+ -C package-root \
192+ --description "PyMOL installation for red-hat-based distros" \
193+ --license "BSD-3-Clause" \
194+ --maintainer "Martin Urban <martin.urban@studmail.w-hs.de>"
195+ cp open-source-pymol-3.1.0.4_amd64.rpm ./packaged/bin/open-source-pymol-3.1.0.4_amd64.rpm
196+
182197 - name : Upload artifact
183198 uses : actions/upload-artifact@v4
184199 with :
You can’t perform that action at this time.
0 commit comments