Browse Source

utils.sh - Find fixed python binary using env instead

sisyphus
Tristan Maat 7 years ago
parent
commit
864d807d5f
  1. 2
      build/utils.sh

2
build/utils.sh

@ -33,7 +33,7 @@ do_build() {
&& zip -rq ../"${PKGNAME}.zip" . -x '**__pycache__**' 'resources/*' \ && zip -rq ../"${PKGNAME}.zip" . -x '**__pycache__**' 'resources/*' \
&& cd - >/dev/null \ && cd - >/dev/null \
&& mkdir -p "${INSTALL_ROOT}${PREFIX}"/{bin,share} \ && mkdir -p "${INSTALL_ROOT}${PREFIX}"/{bin,share} \
&& echo '#!/bin/python3' >> "${INSTALL_ROOT}${PREFIX}/bin/web-greeter" \ && echo '#!/usr/bin/env python3' >> "${INSTALL_ROOT}${PREFIX}/bin/web-greeter" \
&& cat web-greeter.zip >> "${INSTALL_ROOT}${PREFIX}/bin/web-greeter" \ && cat web-greeter.zip >> "${INSTALL_ROOT}${PREFIX}/bin/web-greeter" \
&& chmod +x "${INSTALL_ROOT}${PREFIX}/bin/web-greeter") && chmod +x "${INSTALL_ROOT}${PREFIX}/bin/web-greeter")
} }

Loading…
Cancel
Save