Changed repo
This commit is contained in:
65
commands.sh
65
commands.sh
@@ -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
|
||||
|
||||
13
run-linux.sh
13
run-linux.sh
@@ -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
|
||||
13
run-mac.sh
13
run-mac.sh
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user