Browse Source

Merge pull request #166 from TLATER/use-env-for-python

utils.sh - Find fixed python binary using env instead
sisyphus
Dustin Falgout 7 years ago committed by GitHub
parent
commit
51e0d1ef7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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