Skip to content

Commit

Permalink
Merge pull request #46 from SquitchYT/dev-binary-optimization
Browse files Browse the repository at this point in the history
👷 Fix Linux compilation
  • Loading branch information
SquitchYT authored May 7, 2024
2 parents 4d79fc6 + d7e7423 commit 74153db
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 49 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ jobs:

runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install NodeJS
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 'latest'

- name: Install Rustup
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
rustup component add rust-src
- name: Install Cross
run: |
Expand All @@ -41,11 +42,11 @@ jobs:
- name: Build binary
run: |
cd src-tauri
cross build --release --target ${{ matrix.target }}
CROSS_NO_WARNINGS=0 cross +nightly build -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --release --target ${{ matrix.target }}
mv target/${{ matrix.target }}/release/tess target/${{ matrix.target }}/release/tess-${{ matrix.target }}
- name: Publish binary
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
src-tauri/target/${{ matrix.target }}/release/tess-${{ matrix.target }}
Expand All @@ -60,16 +61,17 @@ jobs:

runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install NodeJS
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 'latest'

- name: Install Rustup
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
rustup component add rust-src
- name: Build frontend
run: |
Expand All @@ -79,11 +81,11 @@ jobs:
- name: Build binary
run: |
cd src-tauri
cargo build --release --target ${{ matrix.target }}
cargo +nightly build -Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --release --target ${{ matrix.target }}
mv target/${{ matrix.target }}/release/tess.exe target/${{ matrix.target }}/release/tess-${{ matrix.target }}.exe
- name: Publish binary
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
src-tauri/target/${{ matrix.target }}/release/tess-${{ matrix.target }}.exe
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tess"
version = "0.7.0-alpha.9"
version = "0.7.0-alpha.10"
description = "Fast. Lightweight. Famous. Terminal for the new era."
authors = ["Squitch"]
repository = "https://github.com/SquitchYT/Tess"
Expand Down Expand Up @@ -28,7 +28,6 @@ regex-lite = "0.1.5"
vt100 = "0.15.2"
futures = "0.3.29"


[target.'cfg(unix)'.dependencies]
signal-hook = "0.3.17"
signal-hook-tokio = { version = "0.3.1", features = ["futures-v0_3"] }
Expand Down
Binary file removed src/fonts/Inter-Bold.ttf
Binary file not shown.
Binary file removed src/fonts/Inter-Medium.ttf
Binary file not shown.
Binary file added src/fonts/Inter-Medium.woff2
Binary file not shown.
Binary file removed src/fonts/Inter-Regular.ttf
Binary file not shown.
Binary file removed src/fonts/Inter-SemiBold.ttf
Binary file not shown.
Binary file added src/fonts/Inter-SemiBold.woff2
Binary file not shown.
72 changes: 36 additions & 36 deletions src/style/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,55 +6,55 @@
@import "term";
@import "tab";


@font-face {
font-family: "Inter";
font-weight: 500;
src: url(../fonts/Inter-Medium.ttf);
font-family: "Inter";
font-style: normal;
font-weight: 500;
font-display: swap;
src: url("../fonts/Inter-Medium.woff2") format("woff2");
}

@font-face {
font-family: "Inter";
font-weight: 600;
src: url(../fonts/Inter-SemiBold.ttf);
font-family: "Inter";
font-style: normal;
font-weight: 600;
font-display: swap;
src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
}


body {
margin: 0;
padding: 0;
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
font-family: Inter;
letter-spacing: 0.8px;
word-spacing: 0.8px;
line-height: 16px;
background: var(--app-background);
font-weight: 500;
color: var(--text-color);
margin: 0;
padding: 0;
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
font-family: Inter;
letter-spacing: 0.8px;
word-spacing: 0.8px;
line-height: 16px;
background: var(--app-background);
font-weight: 500;
color: var(--text-color);
}


::-webkit-scrollbar {
height: 4px;
width: 4px;
height: 4px;
width: 4px;
}

::-webkit-scrollbar-thumb {
background:rgba(212, 212, 212, 0.15);
border-radius: 6px;
background: rgba(212, 212, 212, 0.15);
border-radius: 6px;
}


.background-image {
height: 100%;
width: 100%;
z-index: -4;
object-fit: cover;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
position: absolute;
}
height: 100%;
width: 100%;
z-index: -4;
object-fit: cover;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
position: absolute;
}

0 comments on commit 74153db

Please sign in to comment.