File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ osc-cli.AppDir/done: $(PY_TARGET)
1414 mv squashfs-root osc-cli.AppDir
1515 rm osc-cli.AppDir/usr/bin/python$(PY_VER )
1616 cd osc-cli.AppDir/usr/bin/ && ln -s ../../opt/$(PY_STR ) /bin/$(PY_STR ) $(PY_STR )
17+ echo ' export PY_VERSION=$(PY_VER)' > osc-cli.AppDir/py_version.sh
18+ echo ' export PY_STR=$(PY_STR)' >> osc-cli.AppDir/py_version.sh
1719 cp linux/AppRun-py osc-cli.AppDir/AppRun-py
1820 cd .. && APPDIR=$$ {PWD}/pkg/osc-cli.AppDir/ ./pkg/osc-cli.AppDir/AppRun-py ./setup.py install --prefix=./pkg/osc-cli.AppDir/opt/$(PY_STR ) / --optimize=1
1921 cd osc-cli.AppDir/ && \
@@ -22,8 +24,6 @@ osc-cli.AppDir/done: $(PY_TARGET)
2224 ; done
2325 rm osc-cli.AppDir/$(PY_STR ) .$(PY_MIN ) .desktop
2426 cp linux/osc-cli.desktop osc-cli.AppDir/
25- echo ' export PY_VERSION=$(PY_VER)' > osc-cli.AppDir/py_version.sh
26- echo ' export PY_STR=$(PY_STR)' >> osc-cli.AppDir/py_version.sh
2727 rm osc-cli.AppDir/AppRun
2828 cp linux/AppRun osc-cli.AppDir/
2929 chmod +x osc-cli.AppDir/AppRun
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ self=" $( readlink -f -- $0 ) "
4+ here=" ${self%/* } "
5+ APPDIR=" ${APPDIR:- ${here} } "
6+
7+ source " ${APPDIR} /py_version.sh"
8+
39# Resolve the calling command (preserving symbolic links).
410export APPIMAGE_COMMAND=" $( command -v -- $ARGV0 ) "
511
@@ -12,4 +18,4 @@ export TKPATH="${TK_LIBRARY}"
1218export SSL_CERT_FILE=" ${APPDIR} /opt/_internal/certs.pem"
1319
1420# Call Python
15- " $APPDIR /opt/python3.11 /bin/python3.11 " " $@ "
21+ " $APPDIR /opt/$PY_STR /bin/$PY_STR " " $@ "
You can’t perform that action at this time.
0 commit comments