Fixed CI debian command order
This commit is contained in:
parent
21e56c9558
commit
f971c65eef
1 changed files with 4 additions and 4 deletions
|
@ -71,10 +71,6 @@ build_debian:
|
||||||
- cp -r templates/ package/debian/matemat/usr/lib/matemat/templates/
|
- cp -r templates/ package/debian/matemat/usr/lib/matemat/templates/
|
||||||
- python3.6 setup.py egg_info install --root=package/debian/matemat/ --prefix=/usr --optimize=1
|
- python3.6 setup.py egg_info install --root=package/debian/matemat/ --prefix=/usr --optimize=1
|
||||||
- cd package/debian
|
- cd package/debian
|
||||||
- sed -re 's$#!/usr/local/bin/python3.6$#!/usr/bin/python3.6$' -i matemat/usr/lib/matemat/matemat
|
|
||||||
- find matemat -type f -exec chmod 0644 {} \;
|
|
||||||
- find matemat -type d -exec chmod 755 {} \;
|
|
||||||
- chmod +x matemat/usr/lib/matemat/matemat
|
|
||||||
- mkdir -p matemat/usr/lib/python3/dist-packages/
|
- mkdir -p matemat/usr/lib/python3/dist-packages/
|
||||||
- rsync -a matemat/usr/lib/python3.6/site-packages/ matemat/usr/lib/python3/dist-packages/
|
- rsync -a matemat/usr/lib/python3.6/site-packages/ matemat/usr/lib/python3/dist-packages/
|
||||||
- rm -rf matemat/usr/lib/python3.6/
|
- rm -rf matemat/usr/lib/python3.6/
|
||||||
|
@ -82,6 +78,10 @@ build_debian:
|
||||||
- find matemat/usr/lib/python3/dist-packages -name '*.pyc' -exec rm {} \;
|
- find matemat/usr/lib/python3/dist-packages -name '*.pyc' -exec rm {} \;
|
||||||
- mv matemat/usr/bin/matemat matemat/usr/lib/matemat/matemat
|
- mv matemat/usr/bin/matemat matemat/usr/lib/matemat/matemat
|
||||||
- rm -rf matemat/usr/bin
|
- rm -rf matemat/usr/bin
|
||||||
|
- sed -re 's$#!/usr/local/bin/python3.6$#!/usr/bin/python3.6$' -i matemat/usr/lib/matemat/matemat
|
||||||
|
- find matemat -type f -exec chmod 0644 {} \;
|
||||||
|
- find matemat -type d -exec chmod 755 {} \;
|
||||||
|
- chmod +x matemat/usr/lib/matemat/matemat
|
||||||
- dpkg-deb --build matemat
|
- dpkg-deb --build matemat
|
||||||
- mv matemat.deb "matemat_${MATEMAT_VERSION}-1_all.deb"
|
- mv matemat.deb "matemat_${MATEMAT_VERSION}-1_all.deb"
|
||||||
- sudo -u nobody lintian "matemat_${MATEMAT_VERSION}-1_all.deb"
|
- sudo -u nobody lintian "matemat_${MATEMAT_VERSION}-1_all.deb"
|
||||||
|
|
Loading…
Reference in a new issue