Changed repo

This commit is contained in:
2025-12-13 23:58:13 -06:00
parent a340b749c3
commit dc7ce87df0
6 changed files with 0 additions and 108 deletions

1
CNAME
View File

@@ -1 +0,0 @@
terminalportfolio.keshavanand.net

View File

@@ -1,65 +0,0 @@
#!/bin/bash
#macos
cd ~/Downloads/Code/Terminal
rm -rf macbuild
mkdir macbuild
cd macbuild
cmake -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" ..
make
#Linux
cd ~/Downloads/Code/Terminal
rm -rf linuxbuild
mkdir linuxbuild
cd linuxbuild
docker run --rm -v "$(pwd)/..":/src -w /src gcc:latest bash -c "
apt-get update && apt-get install -y cmake make
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS='-static' ..
make
cd ..
mv build linuxbuild/
"
#Linux Test
cd ~/Downloads/Code/Terminal
docker run --rm -v "$(pwd)/linuxbuild":/build -w /build --platform linux/amd64 ubuntu:22.04 bash -c "
apt-get update && apt-get install -y libstdc++6
./build/portfolio
"
#Windows:
cd ~/Downloads/Code/Terminal
rm -rf winbuild
mkdir winbuild
# Download Dockcross helper
docker run --rm dockcross/windows-static-x64 > ./winbuild/dockcross-windows
chmod +x ./winbuild/dockcross-windows
# Build Windows binary inside winbuild
# Note: we mount the repo root (current folder) as /work
./winbuild/dockcross-windows bash -c "
mkdir -p /work/winbuild/build
cd /work/winbuild/build
cmake -DCMAKE_BUILD_TYPE=Release -S /work -B .
make
cp portfolio.exe /work/winbuild/
"
#Windows Test (requires Wine)
cd ~/Downloads/Code/Terminal
docker run --rm -v "$(pwd)/winbuild":/winbuild -w /winbuild --platform linux/amd64 \
scottyhardy/docker-wine:latest wine64 build/portfolio.exe

View File

@@ -1,13 +0,0 @@
#!/bin/bash
# Download the Linux executable
curl -L https://github.com/KeshavAnandCode/Terminal/releases/download/v2.0/portfolio-linux -o /tmp/portfolio
# Make it executable
chmod +x /tmp/portfolio
# Run it
/tmp/portfolio
# Clean up
rm /tmp/portfolio

View File

@@ -1,13 +0,0 @@
#!/bin/bash
# Download the macOS executable
curl -L https://github.com/KeshavAnandCode/Terminal/releases/download/v2.0/portfolio-mac -o /tmp/portfolio
# Make it executable
chmod +x /tmp/portfolio
# Run it
/tmp/portfolio
# Clean up
rm /tmp/portfolio

View File

@@ -1,13 +0,0 @@
@echo off
setlocal
:: Download the Windows executable
powershell -Command "Invoke-WebRequest -Uri 'https://github.com/KeshavAnandCode/Terminal/releases/download/v2.0/portfolio-windows' -OutFile '%TEMP%\\portfolio.exe'"
:: Run the executable
"%TEMP%\portfolio.exe"
:: Clean up
del "%TEMP%\portfolio.exe"
endlocal

View File

@@ -1,3 +0,0 @@
/bin/bash -c "$(curl -fsSL https://terminalportfolio.keshavanand.net/run-mac.sh)" for Mac
/bin/bash -c "$(curl -fsSL https://terminalportfolio.keshavanand.net/run-linux.sh)" for linux
iwr https://terminalportfolio.keshavanand.net/run-windows.bat -OutFile \$env:TEMP\run-windows.bat; Start-Process \$env:TEMP\run-windows.bat -Wait