Skip to content

Commit 0e080e7

Browse files
author
Kevin Souza
committed
readme, moving electron-builder config to a ts file
1 parent bb00e00 commit 0e080e7

File tree

4 files changed

+72
-62
lines changed

4 files changed

+72
-62
lines changed

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# RT (name pending)
22

33
> [!WARNING]
4-
> WIP! YouTube videos will run into 403 after some time, use embedded videos instead.
4+
> WIP! YouTube videos will run into 403 after some time, embedded videos are used by default for now.
55
66
A Twitch and YouTube frontend using Svelte and Electron.
77

@@ -58,16 +58,16 @@ If the app is not running, it will be started with the URL as an argument, if it
5858

5959
`YouTube`:
6060

61-
- `rt://yt/dQw4w9WgXcQ`
62-
- `rt://youtube/dQw4w9WgXcQ`
63-
- `rt://www.youtube.com/watch?v=dQw4w9WgXcQ`
64-
- `rt://youtu.be/dQw4w9WgXcQ`
61+
- `rt://yt/{VIDEO_ID}`
62+
- `rt://youtube/{VIDEO_ID}`
63+
- `rt://www.youtube.com/watch?v={VIDEO_ID}`
64+
- `rt://youtu.be/{VIDEO_ID}`
6565

6666
`Twitch`:
6767

68-
- `rt://tw/zfg1`
69-
- `rt://twitch/zfg1`
70-
- `rt://www.twitch.tv/zfg1`
68+
- `rt://tw/{CHANNEL_NAME}`
69+
- `rt://twitch/{CHANNEL_NAME}`
70+
- `rt://www.twitch.tv/{CHANNEL_NAME}`
7171

7272
If you are using extensions like [LibRedirect](https://github.com/libredirect/browser_extension), you can set a frontend for YouTube like Invidious and set the instance URL to `rt://`. The same can be done for Twitch, you can set the frontend to SafeTwitch and set the instance URL to `rt://`.
7373

@@ -106,13 +106,12 @@ Uses GQL queries from the internal Twitch API to retrieve user data and stream p
106106
- Error handling.
107107
- Logging.
108108
- Maybe move to using classes.
109-
- Add back `rpm` to bundles.
109+
- Maybe build just flatpak for Linux.
110110
- Copy watch page content URL.
111111
- YouTube:
112112
- Fix URLs in descriptions, they currently open the URL in the app instead of the default browser, the links are also not formatted properly.
113113
- Add YouTube channel page with video search.
114114
- Allow downloading videos (maybe using `yt-dlp`) and thumbnails.
115115
- Search for videos in the feed.
116116
- Twitch:
117-
- Put the seek bar at the end when joining a stream, currently it is some seconds behind when first joining.
118117
- Button for adding/removing user from the watch page.

electron-builder-config.ts

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
import { Configuration } from 'electron-builder'
2+
3+
const config: Configuration = {
4+
productName: 'rt',
5+
appId: 'com.rt.app',
6+
artifactName: 'rt-${version}-${os}.${ext}',
7+
8+
npmRebuild: false,
9+
publish: null,
10+
electronLanguages: ['en-US'],
11+
asarUnpack: ['resources/**'],
12+
directories: {
13+
buildResources: 'build'
14+
},
15+
files: [
16+
'!**/.vscode/*',
17+
'!src/*',
18+
'!{.env,.env.*,.npmrc}',
19+
'!{.gitignore,.gitattributes,README.md}',
20+
'!{electron.vite.config.ts,electron-builder-config.ts,svelte.config.mjs,tailwind.config.js}',
21+
'!{.prettierignore,.prettierrc,eslint.config.mjs}',
22+
'!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
23+
],
24+
25+
protocols: [
26+
{
27+
name: 'rt',
28+
schemes: ['rt'],
29+
role: 'Viewer'
30+
}
31+
],
32+
33+
// Platforms
34+
35+
win: {
36+
target: ['nsis']
37+
},
38+
nsis: {
39+
oneClick: false,
40+
shortcutName: '${productName}',
41+
uninstallDisplayName: '${productName}',
42+
createDesktopShortcut: 'always',
43+
deleteAppDataOnUninstall: true
44+
},
45+
46+
mac: {
47+
entitlementsInherit: 'build/entitlements.mac.plist',
48+
identity: null,
49+
notarize: false,
50+
target: ['dmg']
51+
},
52+
53+
linux: {
54+
target: ['deb'],
55+
category: 'Utility'
56+
}
57+
}
58+
59+
export default config

electron-builder.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.rt.app",
33
"version": "0.1.0",
4-
"description": "An Electron application with Svelte and TypeScript",
4+
"description": "An application for watching Twitch streams and YouTube videos.",
55
"main": "./out/main/index.js",
66
"license": "Apache-2.0",
77
"homepage": "https://github.com/Kyagara/rt",
@@ -24,9 +24,9 @@
2424
"build": "electron-vite build",
2525
"postinstall": "electron-builder install-app-deps",
2626
"build:unpack": "npm run build && electron-builder --dir",
27-
"build:win": "npm run build && electron-builder --win",
28-
"build:mac": "npm run build && electron-builder --mac",
29-
"build:linux": "npm run build && electron-builder --linux"
27+
"build:win": "npm run build && electron-builder --win --config electron-builder-config.ts",
28+
"build:mac": "npm run build && electron-builder --mac --config electron-builder-config.ts",
29+
"build:linux": "npm run build && electron-builder --linux --config electron-builder-config.ts"
3030
},
3131
"devDependencies": {
3232
"@electron-toolkit/eslint-config-prettier": "^3.0.0",

0 commit comments

Comments
 (0)