Use a directory that isn't deleted

This commit is contained in:
Timmy Welch 2024-06-29 17:15:13 -07:00
parent 10a1554e73
commit 56d8c507e2
2 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,6 @@ from __future__ import annotations
import argparse
import os
import pathlib
import stat
try:
import niquests as requests
@ -30,7 +29,7 @@ if opts.APPIMAGETOOL.exists():
urlretrieve(
"https://github.com/AppImage/AppImageKit/releases/latest/download/appimagetool-x86_64.AppImage", opts.APPIMAGETOOL
)
os.chmod(opts.APPIMAGETOOL, stat.S_IRWXU)
os.chmod(opts.APPIMAGETOOL, 0o0700)
if not opts.APPIMAGETOOL.exists():
raise SystemExit(1)

View File

@ -240,7 +240,7 @@ deps =
requests
allowlist_externals =
{tox_root}/build/appimagetool-x86_64.AppImage
change_dir = {tox_root}/build
change_dir = {tox_root}/dist/binary
commands_pre =
-python -c 'import shutil; shutil.rmtree("{tox_root}/build/", ignore_errors=True)'
python {tox_root}/build-tools/get_appimage.py {tox_root}/build/appimagetool-x86_64.AppImage