Skip to content

Commit d1de9a9

Browse files
authored
feat: harden app (#1)
* feat: harden app * auto update versions * resolve comments * solve nitpicks
1 parent 4a16f05 commit d1de9a9

69 files changed

Lines changed: 967 additions & 262 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ jobs:
3232
key: ${{ runner.os }}-cargo-release-${{ hashFiles('src-tauri/Cargo.lock') }}
3333
restore-keys: ${{ runner.os }}-cargo-release-
3434

35+
- name: Set version from tag
36+
run: |
37+
$version = "${{ github.ref_name }}" -replace '^v', ''
38+
Write-Output "VERSION=$version"
39+
# Update Cargo.toml
40+
(Get-Content src-tauri/Cargo.toml -Raw) -replace '(?m)^version = ".*?"', "version = `"$version`"" | Set-Content src-tauri/Cargo.toml -NoNewline
41+
# Update package.json
42+
npm version $version --no-git-tag-version
43+
3544
- name: Install npm dependencies
3645
run: npm install
3746

README.md

Lines changed: 6 additions & 2 deletions

docs/icon.svg

Lines changed: 9 additions & 0 deletions

docs/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<nav>
2020
<div class="nav-inner">
21-
<a href="#" class="nav-logo">OpenDesktop</a>
21+
<a href="#" class="nav-logo"><img src="icon.svg" alt="OpenDesktop" class="nav-icon">OpenDesktop</a>
2222
<div class="nav-links">
2323
<a href="#features">Features</a>
2424
<a href="#compare">Compare</a>
@@ -35,6 +35,7 @@
3535
</nav>
3636

3737
<section class="hero">
38+
<img src="icon.svg" alt="OpenDesktop" class="hero-icon">
3839
<div class="hero-badge">100% Free &amp; Open Source</div>
3940
<h1>The Docker Desktop<br>alternative you deserve</h1>
4041
<p class="hero-sub">A fast, lightweight container manager for Docker on WSL.<br>No license fees. No bloat. Just

docs/style.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,21 @@ nav {
5656
color: var(--text);
5757
text-decoration: none;
5858
letter-spacing: -0.5px;
59+
display: flex;
60+
align-items: center;
61+
gap: 8px;
62+
}
63+
64+
.nav-icon {
65+
width: 24px;
66+
height: 24px;
67+
}
68+
69+
.hero-icon {
70+
width: 120px;
71+
height: 120px;
72+
margin: 0 auto 20px;
73+
display: block;
5974
}
6075

6176
.nav-links {

icon.svg

Lines changed: 9 additions & 0 deletions

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "open-desktop",
33
"private": true,
4-
"version": "0.1.0",
4+
"version": "0.0.0",
55
"type": "module",
66
"scripts": {
77
"tauri": "tauri"

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "open-desktop"
3-
version = "0.1.0"
3+
version = "0.0.0"
44
description = "A Tauri App"
55
authors = ["you"]
66
edition = "2021"
@@ -23,4 +23,3 @@ tauri-plugin-opener = "2"
2323
tauri-plugin-shell = "2"
2424
serde = { version = "1", features = ["derive"] }
2525
serde_json = "1"
26-

src-tauri/icons/128x128.png

-457 Bytes

0 commit comments

Comments
 (0)