Skip to content

Commit b3709ee

Browse files
committed
macos build fix
1 parent dbe094b commit b3709ee

3 files changed

Lines changed: 45 additions & 23 deletions

File tree

docs/index.html

Lines changed: 43 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<meta
77
name="description"
8-
content="A quiet app for Windows that watches what you work on, so filling out your timesheet doesn't require guessing."
8+
content="A quiet app for Windows and macOS that watches what you work on, so filling out your timesheet doesn't require guessing."
99
/>
1010

1111
<meta property="og:title" content="Timesheeps" />
1212
<meta
1313
property="og:description"
14-
content="A quiet app for Windows that watches what you work on, so filling out your timesheet doesn't require guessing."
14+
content="A quiet app for Windows and macOS that watches what you work on, so filling out your timesheet doesn't require guessing."
1515
/>
1616
<meta property="og:image" content="https://timesheeps.app/android-chrome-192x192.png" />
1717

@@ -84,7 +84,7 @@
8484
.hero p {
8585
font-size: 1.15rem;
8686
color: var(--text-muted);
87-
max-width: 480px;
87+
max-width: 530px;
8888
line-height: 1.6;
8989
}
9090

@@ -115,6 +115,13 @@
115115
flex-shrink: 0;
116116
}
117117

118+
.cta-group {
119+
display: flex;
120+
flex-wrap: wrap;
121+
gap: 12px;
122+
justify-content: center;
123+
}
124+
118125
.divider {
119126
width: 100%;
120127
max-width: 640px;
@@ -212,19 +219,36 @@ <h1>Timesheeps</h1>
212219
<h2>The sheep remembers so you don't have to.</h2>
213220

214221
<p>
215-
A quiet app for Windows that watches what you work on, so filling out your timesheet doesn't
216-
require guessing.
222+
A quiet app for Windows and macOS that watches what you work on, so filling out your
223+
timesheet doesn't require guessing.
217224
</p>
218225

219-
<a class="cta" id="release-link" href="https://github.com/gregdev/timesheeps/releases/latest">
220-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true">
221-
<path
222-
d="M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1zm.75 10.5h-1.5v-5h1.5v5zm0-6.5h-1.5V3.5h1.5V5z"
223-
fill="currentColor"
224-
/>
225-
</svg>
226-
Download latest release
227-
</a>
226+
<div class="cta-group">
227+
<a class="cta" id="win-link" href="https://github.com/gregdev/timesheeps/releases/latest">
228+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true">
229+
<path
230+
d="M7 1v8M3.5 6l3.5 3 3.5-3M1.5 12.5h11"
231+
stroke="currentColor"
232+
stroke-width="1.7"
233+
stroke-linecap="round"
234+
stroke-linejoin="round"
235+
/>
236+
</svg>
237+
Download for Windows
238+
</a>
239+
<a class="cta" id="mac-link" href="https://github.com/gregdev/timesheeps/releases/latest">
240+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true">
241+
<path
242+
d="M7 1v8M3.5 6l3.5 3 3.5-3M1.5 12.5h11"
243+
stroke="currentColor"
244+
stroke-width="1.7"
245+
stroke-linecap="round"
246+
stroke-linejoin="round"
247+
/>
248+
</svg>
249+
Download for macOS
250+
</a>
251+
</div>
228252
</section>
229253

230254
<div class="divider"></div>
@@ -352,13 +376,11 @@ <h2>What the sheep does</h2>
352376
fetch('https://api.github.com/repos/gregdev/timesheeps/releases/latest')
353377
.then((r) => r.json())
354378
.then((data) => {
355-
const link = document.getElementById('release-link')
356-
if (data && data.html_url) {
357-
link.href = data.html_url
358-
if (data.tag_name) {
359-
link.childNodes[link.childNodes.length - 1].textContent = ` Download ${data.tag_name}`
360-
}
361-
}
379+
const assets = data.assets || []
380+
const exe = assets.find((a) => a.name.endsWith('-setup.exe'))
381+
const dmg = assets.find((a) => a.name.endsWith('.dmg'))
382+
if (exe) document.getElementById('win-link').href = exe.browser_download_url
383+
if (dmg) document.getElementById('mac-link').href = dmg.browser_download_url
362384
})
363385
.catch(() => {})
364386
</script>

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/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"bundle": {
2626
"active": true,
27-
"targets": ["nsis"],
27+
"targets": ["nsis", "dmg", "app"],
2828
"createUpdaterArtifacts": true,
2929
"icon": [
3030
"icons/32x32.png",

0 commit comments

Comments
 (0)