Skip to content

Commit f7bbb2e

Browse files
committed
update: counter and readme
1 parent 7e9a78b commit f7bbb2e

File tree

10 files changed

+30
-34
lines changed

10 files changed

+30
-34
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
with:
8585
projectPath: ./src-tauri
8686
tagName: ${{ github.ref_name }}
87-
releaseName: 'alt-sendme v__VERSION__'
87+
releaseName: 'AltSendme v__VERSION__'
8888
args: ${{ matrix.args }}
8989
releaseBody: |
9090
See the assets below to download and install this version.
@@ -93,14 +93,14 @@ jobs:
9393
9494
This app is **not code-signed**. When you first open it:
9595
96-
**Option 1 (Easiest):** Right-click the app → Select "Open" → Click "Open" in the dialog
9796
98-
**Option 2 (Terminal):**
97+
**Terminal:**
98+
9999
```bash
100-
xattr -dr com.apple.quarantine /path/to/ALT-SENDME.app
100+
cd /Applications && xattr -dr com.apple.quarantine AltSendme.app
101101
```
102102
103-
See full instructions: https://github.com/${{ github.repository }}/blob/main/.github/MACOS_INSTALL.md
103+
104104
releaseDraft: true
105105
prerelease: false
106106
includeUpdaterJson: true

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ Alt-Sendme is currently distributed **without code signing**. When you first ope
6565

6666

6767
**Remove Quarantine Flag (Terminal)**
68-
```bash
69-
# Navigate to where you installed the app (usually /Applications)
70-
cd /Applications
7168

72-
# Remove the quarantine flag
73-
xattr -dr com.apple.quarantine AltSendme.app
69+
1. Open Spotlight Search (⌘+space) - search for terminal and open
70+
2. Paste the following command and hit enter
71+
72+
```bash
73+
cd /Applications && xattr -dr com.apple.quarantine AltSendme.app
7474
```
7575

7676
The app is open source and safe - the warning is just macOS's gatekeeper for unsigned applications. Code signing will be added in future releases.

src-tauri/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "alt-sendme",
3-
"version": "0.1.1",
2+
"name": "AltSendme",
3+
"version": "0.1.2",
44
"scripts": {
55
"dev": "cd ../web-app && npm run dev",
66
"build": "cd ../web-app && npm run build"

src-tauri/tauri.conf.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "AltSendme",
4-
"version": "0.1.1",
5-
"identifier": "com.sendme.desktop",
4+
"version": "0.1.2",
5+
"identifier": "com.altsendme.desktop",
66
"build": {
77
"frontendDist": "../web-app/dist",
88
"devUrl": "http://localhost:1420",
@@ -44,7 +44,7 @@
4444
"font-src": "'self' asset: http://asset.localhost blob: data: https:",
4545
"img-src": "'self' asset: http://asset.localhost blob: data: https:",
4646
"style-src": "'unsafe-inline' 'self'",
47-
"script-src": "'self' asset: http://asset.localhost"
47+
"script-src": "'self' asset: http://asset.localhost https://gc.zgo.at"
4848
},
4949
"assetProtocol": {
5050
"enable": true,

web-app/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>ALT-SENDME</title>
7+
<title>AltSendme</title>
88
<script data-goatcounter="https://alt-sendme.goatcounter.com/count"
99
data-goatcounter-settings='{"allow_local":true,"no_onload":true}'
1010
async src="//gc.zgo.at/count.js"></script>

web-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "alt-sendme",
2+
"name": "AltSendme",
33
"private": true,
4-
"version": "0.1.0",
4+
"version": "0.1.2",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

web-app/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function App() {
125125
</div>
126126
</div>
127127
</div>
128-
<div className="w-full h-10 text-center text-xs flex items-center justify-center"><span>v0.1.1</span></div>
128+
<div className="w-full h-10 text-center text-xs flex items-center justify-center"><span>v0.1.2</span></div>
129129
</div>
130130
)
131131
}

web-app/src/components/sender/ShareActionCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function ShareActionCard({
1515
<button
1616
onClick={onStartSharing}
1717
disabled={isLoading}
18-
className="w-full py-2 px-4 rounded-md font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center"
18+
className="w-full py-2 px-4 rounded-md font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-default flex items-center justify-center"
1919
style={{
2020
backgroundColor: 'var(--app-primary)',
2121
color: 'var(--app-primary-fg)',

web-app/src/components/sender/TransferSuccessScreen.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { useEffect } from 'react'
21
import { CheckCircle, XCircle } from 'lucide-react'
32
import type { SuccessScreenProps } from '../../types/sender'
43
import { trackTransferComplete } from '../../lib/analytics'
@@ -50,11 +49,13 @@ export function TransferSuccessScreen({ metadata, onDone }: SuccessScreenProps)
5049
const wasStopped = metadata.wasStopped || false
5150
const isReceiver = !!metadata.downloadPath
5251

53-
useEffect(() => {
54-
// Track analytics for all transfers, regardless of completion status or file size
55-
// This provides better insights into user behavior and transfer patterns
56-
trackTransferComplete(metadata.fileSize, isReceiver ? 'receiver' : 'sender', wasStopped)
57-
}, [isReceiver, metadata.fileSize, wasStopped])
52+
const handleDone = () => {
53+
// Only track analytics if transfer completed successfully (not stopped)
54+
if (!wasStopped) {
55+
trackTransferComplete(metadata.fileSize, isReceiver ? 'receiver' : 'sender')
56+
}
57+
onDone()
58+
}
5859

5960
return (
6061
<div className="flex flex-col items-center justify-center space-y-6 ">
@@ -179,7 +180,7 @@ export function TransferSuccessScreen({ metadata, onDone }: SuccessScreenProps)
179180

180181
{/* Done Button */}
181182
<button
182-
onClick={onDone}
183+
onClick={handleDone}
183184
className="w-full max-w-sm py-3 px-6 rounded-md font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2"
184185
style={{
185186
backgroundColor: 'var(--app-primary)',

web-app/src/lib/analytics.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ declare global {
1414
}
1515
}
1616

17-
export function trackTransferComplete(fileSizeBytes: number, role: 'sender' | 'receiver', wasStopped: boolean = false): void {
17+
export function trackTransferComplete(fileSizeBytes: number, role: 'sender' | 'receiver'): void {
1818
if (typeof window === 'undefined' || !window.goatcounter) {
1919
return
2020
}
@@ -33,13 +33,8 @@ export function trackTransferComplete(fileSizeBytes: number, role: 'sender' | 'r
3333
bucketSize = `${(sizeInMB / 1024).toFixed(1)}GB`
3434
}
3535

36-
const status = wasStopped ? 'stopped' : 'completed'
37-
const statusEmoji = wasStopped ? '⏹️' : '✅'
38-
3936
window.goatcounter.count({
40-
path: `transfer-${status}/${role}/${bucketSize}`,
41-
title: `${statusEmoji} Transfer ${status.charAt(0).toUpperCase() + status.slice(1)} - ${role} - ${bucketSize}`,
42-
event: true,
37+
path: `transfer-complete/${role}/${bucketSize}`,
4338
allow_local: true,
4439
})
4540
} catch (error) {

0 commit comments

Comments
 (0)