More cleanup
This commit is contained in:
parent
8934927e9d
commit
3ac339633a
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
|
.stfolder
|
||||||
Downloads
|
Downloads
|
||||||
__pycache__
|
__pycache__
|
||||||
Win
|
Win
|
||||||
|
|||||||
0
Linux/Scripts/dev.sh → Internal/unix_dev.sh
Executable file → Normal file
0
Linux/Scripts/dev.sh → Internal/unix_dev.sh
Executable file → Normal 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
|
|
||||||
@ -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%
|
|
||||||
@ -1,7 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
# DEVenver
|
# DEVenver
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
# A simple python script to download portable applications and install them by
|
# A simple python script to download portable applications and install them by
|
||||||
# unzipping them to a structured directory tree.
|
# unzipping them to a structured directory tree.
|
||||||
|
|
||||||
@ -22,11 +21,8 @@ from string import Template
|
|||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
# Internal
|
# Internal
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
DOWNLOAD_CHUNK_SIZE = 1 * 1024 * 1024 # 1 megabyte
|
DOWNLOAD_CHUNK_SIZE = 1 * 1024 * 1024 # 1 megabyte
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
# These variables are set once they are downloaded dynamically and installed
|
# These variables are set once they are downloaded dynamically and installed
|
||||||
# from the internal app listing!
|
# from the internal app listing!
|
||||||
zstd_exe = ""
|
zstd_exe = ""
|
||||||
@ -34,7 +30,6 @@ zip7_exe = ""
|
|||||||
zip7_bootstrap_exe = ""
|
zip7_bootstrap_exe = ""
|
||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
def print_header(title):
|
def print_header(title):
|
||||||
line = f'> ' + title + ' ';
|
line = f'> ' + title + ' ';
|
||||||
print(line.ljust(100, '-'))
|
print(line.ljust(100, '-'))
|
||||||
|
|||||||
12
install.py
12
install.py
@ -193,7 +193,6 @@ return {{
|
|||||||
""")
|
""")
|
||||||
|
|
||||||
# Wezterm super terminal
|
# Wezterm super terminal
|
||||||
# --------------------------------------------------------------------------
|
|
||||||
wezterm_terminal_script_path = install_dir / "dev_terminal.bat"
|
wezterm_terminal_script_path = install_dir / "dev_terminal.bat"
|
||||||
devenver.lprint(f"Installing WezTerm terminal script to {wezterm_terminal_script_path}")
|
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
|
# PyNvim
|
||||||
devenver.lprint(f"Installing PyNVIM")
|
devenver.lprint(f"Installing PyNVIM")
|
||||||
subprocess.run(f"{python_exe_path} -m pip install 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
|
# Use LLVM script to fix up bloated installation
|
||||||
# See: https://github.com/zufuliu/llvm-utils/blob/main/llvm/llvm-link.bat
|
# 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-completion.bash", install_dir)
|
||||||
shutil.copy(internal_dir / "unix_fzf-key-bindings.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
|
# Install left-overs
|
||||||
devenver.print_header("Install configuration files")
|
devenver.print_header("Install configuration files")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user