More cleanup

This commit is contained in:
doylet 2026-02-14 16:47:49 +11:00
parent 8934927e9d
commit 3ac339633a
7 changed files with 8 additions and 53 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.stfolder
Downloads
__pycache__
Win

0
Linux/Scripts/dev.sh → Internal/unix_dev.sh Executable file → Normal file
View File

View File

@ -1,14 +0,0 @@
@echo off
start /B https://brave.com
start /B https://desktop.telegram.org
start /B https://ledger.com/ledger-live
start /B https://getsession.org/windows
start /B https://github.com/kapitainsky/RcloneBrowser/releases
start /B https://mozilla.org/en-US/firefox/new
start /B https://obsidian.md/download
start /B https://protonvpn.com/download
start /B https://signal.org/download
start /B https://safing.io
start /B https://spotify.com/us/download
start /B https://discord.com/download
start /B https://www.gpsoft.com.au/dscripts/download.asp

View File

@ -1,29 +0,0 @@
@echo off
setlocal EnableDelayedExpansion
if "%~1"=="help" goto :help
if "%~1"=="" goto :help
if "%~1"=="--help" goto :help
if "%~1"=="/?" goto :help
if "%~2"=="" goto :help
goto :run
:help
echo USAGE: msys2_env.bat ^<environment^> ^<command^>
echo.
echo ENVIRONMENTS:
echo ^| Name ^| Toolchain ^| Arch ^| C Runtime ^| C++ Runtime ^|
echo ^| 'clang64' ^| llvm ^| x64 ^| ucrt ^| libc++ ^|
echo ^| 'mingw32' ^| gcc ^| x86 ^| msvcrt ^| libstdc++ ^|
echo ^| 'mingw64' ^| gcc ^| x64 ^| msvcrt ^| libstdc++ ^|
echo ^| 'msys2' ^| gcc ^| x64 ^| cygwin ^| libstdc++ ^|
echo ^| 'ucrt64' ^| gcc ^| x64 ^| ucrt ^| libstdc++ ^|
goto :eof
:run
set msys_env=%~1
for /f "tokens=1,* delims= " %%a in ("%*") do set remaining_args=%%b
set cmd=%devenver_root%\MSYS2\20240113\msys2_shell.cmd -%msys_env% -no-start -defterm -here -c "%remaining_args%"
echo [SCRIPT] Executing '%cmd%'
%cmd%

View File

@ -1,7 +1,6 @@
#!/usr/bin/env python3
# DEVenver
# ------------------------------------------------------------------------------
# A simple python script to download portable applications and install them by
# unzipping them to a structured directory tree.
@ -22,11 +21,8 @@ from string import Template
from enum import Enum
# Internal
# ------------------------------------------------------------------------------
DOWNLOAD_CHUNK_SIZE = 1 * 1024 * 1024 # 1 megabyte
# ------------------------------------------------------------------------------
# These variables are set once they are downloaded dynamically and installed
# from the internal app listing!
zstd_exe = ""
@ -34,7 +30,6 @@ zip7_exe = ""
zip7_bootstrap_exe = ""
# Functions
# ------------------------------------------------------------------------------
def print_header(title):
line = f'> ' + title + ' ';
print(line.ljust(100, '-'))

View File

@ -193,7 +193,6 @@ return {{
""")
# Wezterm super terminal
# --------------------------------------------------------------------------
wezterm_terminal_script_path = install_dir / "dev_terminal.bat"
devenver.lprint(f"Installing WezTerm terminal script to {wezterm_terminal_script_path}")
@ -214,10 +213,6 @@ start "" /MAX "%~dp0{installed_dev_apps["WezTerm"][0]["exe_path"].relative_to(in
# PyNvim
devenver.lprint(f"Installing PyNVIM")
subprocess.run(f"{python_exe_path} -m pip install pynvim")
else:
dev_env_script_path = (install_dir / "dev_env_update.sh")
dev_env_script_path.write_text(f"{sys.executable} {install_script_path} --with-dev-apps linux\n")
subprocess.run(args=["chmod", "+x", dev_env_script_path])
# Use LLVM script to fix up bloated installation
# See: https://github.com/zufuliu/llvm-utils/blob/main/llvm/llvm-link.bat
@ -240,6 +235,13 @@ start "" /MAX "%~dp0{installed_dev_apps["WezTerm"][0]["exe_path"].relative_to(in
shutil.copy(internal_dir / "unix_fzf-completion.bash", install_dir)
shutil.copy(internal_dir / "unix_fzf-key-bindings.bash", install_dir)
# Install dev scripts
if is_windows:
shutil.copy(internal_dir / "win_dev.bat", install_dir / "dev.bat")
else:
shutil.copy(internal_dir / "unix_dev.sh", install_dir / "dev.sh")
subprocess.run(args=["chmod", "+x", install_dir / "dev.sh")
# Install left-overs
devenver.print_header("Install configuration files")