Skip to content

Commit

Permalink
Default to using TMPDIR environment Variable (which everbody can over…
Browse files Browse the repository at this point in the history
…ride) instead of /opt/supermicro-fan-control/tmp for onefile Temporary Directory Requirement.
  • Loading branch information
luckylinux committed Jun 29, 2024
1 parent 04c7ed9 commit fbdc58c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ cp ${toolpath}/opt/supermicro-fan-control/bin/supermicro-fan-control.py ${toolpa
cd ${toolpath}/tmp || exit

# Build using Nuitka
#python -m nuitka --standalone --follow-imports --onefile supermicro-fan-control.py
python -m nuitka --standalone --follow-imports --onefile supermicro-fan-control.py


# Build using Nuitka (needed in order to bypass some noexec Permission Issues ?)
# https://github.com/Nuitka/Nuitka/issues/2246
python -m nuitka --standalone --follow-imports --onefile --onefile-tempdir-spec=/opt/supermicro-fan-control/tmp supermicro-fan-control.py
#python -m nuitka --standalone --follow-imports --onefile --onefile-tempdir-spec=/opt/supermicro-fan-control/tmp supermicro-fan-control.py

# Move into the Respective Folders
mv supermicro-fan-control.dist/* ${toolpath}/dist/
Expand Down

0 comments on commit fbdc58c

Please sign in to comment.