Skip to content

Commit 12c98a7

Browse files
committed
Refactor desktop build workflow to use dynamic versioning and improve variable handling; update product name in configuration files and enhance connect page with store banner
1 parent 239d665 commit 12c98a7

5 files changed

Lines changed: 118 additions & 16 deletions

File tree

.github/workflows/desktop.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ name: Desktop Build and Release
33
on:
44
workflow_dispatch:
55
inputs:
6-
version:
7-
description: 'Version number for the release'
8-
required: true
9-
default: '0.1.0'
106
prerelease:
117
description: 'Is this a pre-release?'
128
type: boolean
@@ -30,6 +26,11 @@ jobs:
3026
node-version: 22
3127
cache: 'npm'
3228

29+
- name: Variables
30+
run: |
31+
echo VERSION=$(npm run version --silent) >> $GITHUB_ENV
32+
shell: bash
33+
3334
- name: Install Rust (stable)
3435
uses: dtolnay/rust-toolchain@stable
3536

@@ -47,15 +48,15 @@ jobs:
4748
env:
4849
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4950
with:
50-
tagName: v${{ github.event.inputs.version }}
51-
releaseName: "Blockcore Notes v${{ github.event.inputs.version }}"
51+
tagName: ${{ env.VERSION }}
52+
releaseName: "Blockcore Notes v${{ env.VERSION }}"
5253
releaseBody: "See the assets to download this version and install."
5354
releaseDraft: true
5455
prerelease: ${{ github.event.inputs.prerelease }}
5556

56-
- name: Upload artifacts
57-
uses: actions/upload-artifact@v4
58-
with:
59-
name: artifacts-${{ matrix.platform }}
60-
path: |
61-
target/release/bundle/
57+
# - name: Upload artifacts
58+
# uses: actions/upload-artifact@v4
59+
# with:
60+
# name: artifacts-${{ matrix.platform }}
61+
# path: |
62+
# target/release/bundle/

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "notes"
2+
name = "Blockcore Notes"
33
version = "2.0.0"
44
description = "Blockcore Notes"
55
authors = ["you"]

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
3-
"productName": "notes",
3+
"productName": "Blockcore Notes",
44
"version": "2.0.0",
55
"identifier": "net.blockcore.notes",
66
"build": {

src/app/pages/connect/connect.css

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
position: fixed;
1919
height: 80px;
2020
width: 100%;
21-
background-color:var(--mat-sidenav-content-text-color, var(--mat-sys-background));
21+
background-color: var(--mat-sidenav-content-text-color, var(--mat-sys-background));
2222
padding: 1em;
2323
display: flex;
2424
z-index: 1000;
@@ -33,7 +33,7 @@
3333
font-size: 1.6em;
3434
/* color: rgba(0, 0, 0, 0.85); */
3535
margin-left: 140px;
36-
font-weight: 700;
36+
font-weight: 700;
3737
display: flex;
3838
justify-content: center;
3939
align-items: center;
@@ -181,9 +181,11 @@
181181
0% {
182182
transform: perspective(400px) rotateY(0deg);
183183
}
184+
184185
50% {
185186
transform: perspective(400px) rotateY(30deg);
186187
}
188+
187189
100% {
188190
transform: perspective(400px) rotateY(0deg);
189191
}
@@ -220,6 +222,7 @@
220222
margin-right: auto !important;
221223
margin-left: auto !important;
222224
}
225+
223226
.spaces {
224227
max-width: 944px;
225228
margin-right: auto !important;
@@ -316,3 +319,58 @@
316319
font-size: 0.85em;
317320
margin-bottom: 1.4em;
318321
}
322+
323+
.store-banner {
324+
background: linear-gradient(135deg, #0078d4, #005a9e);
325+
padding: 2em;
326+
}
327+
328+
.store-content {
329+
display: flex;
330+
align-items: center;
331+
gap: 2rem;
332+
color: white;
333+
}
334+
335+
.store-text {
336+
flex: 1;
337+
}
338+
339+
.store-text h3 {
340+
font-size: 1.5rem;
341+
margin: 0;
342+
font-weight: 600;
343+
}
344+
345+
.store-text p {
346+
margin: 0.5rem 0 0;
347+
opacity: 0.9;
348+
}
349+
350+
.store-button {
351+
display: inline-flex;
352+
align-items: center;
353+
background: white;
354+
color: #0078d4;
355+
padding: 0.8rem 1.5rem;
356+
border-radius: 12px;
357+
text-decoration: none;
358+
font-weight: 600;
359+
transition: all 0.3s ease;
360+
}
361+
362+
.store-button:hover {
363+
transform: translateY(-2px);
364+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
365+
}
366+
367+
@media (max-width: 768px) {
368+
.store-content {
369+
flex-direction: column;
370+
text-align: center;
371+
gap: 1rem;
372+
}
373+
374+
.store-banner {
375+
}
376+
}

src/app/pages/connect/connect.html

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,49 @@ <h1 class="centered">Spaces</h1>
8585
<img loading="lazy" width="1079" height="776" src="/assets/blockcore-notes-screenshot.png" />
8686
</mat-card>
8787

88+
<div class="store-banner card">
89+
<div class="store-content">
90+
91+
<div class="store-text">
92+
<h3>Blockcore Notes for Desktop</h3>
93+
<p>Install the native app for a better experience</p>
94+
</div>
95+
<a
96+
href="https://github.com/block-core/blockcore-notes/releases"
97+
target="_blank"
98+
class="store-button"
99+
>
100+
Get it from GitHub
101+
<span class="arrow"></span>
102+
</a>
103+
</div>
104+
</div>
105+
106+
<!-- <div class="store-banner card">
107+
<div class="store-content">
108+
<div class="store-icon">
109+
<a href="https://apps.microsoft.com/detail/9NLCCGZQ48TX">
110+
<img
111+
src="https://get.microsoft.com/images/en-us%20dark.svg"
112+
width="200"
113+
/>
114+
</a>
115+
</div>
116+
<div class="store-text">
117+
<h3>Notes for Windows</h3>
118+
<p>Install the native app for a better experience</p>
119+
</div>
120+
<a
121+
href="https://apps.microsoft.com/detail/9NLCCGZQ48TX"
122+
target="_blank"
123+
class="store-button"
124+
>
125+
Get it from Microsoft Store
126+
<span class="arrow">→</span>
127+
</a>
128+
</div>
129+
</div> -->
130+
88131
<mat-card class="card">
89132
<mat-card-content>
90133
<h1>Freedom of expression</h1>

0 commit comments

Comments
 (0)