@corelauncher/rod 1.1.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +17 -2
- package/package.json +44 -43
- package/src-ts/ffi.ts +2 -0
- package/src-ts/index.ts +2 -0
- package/target/release/librod.so +0 -0
- package/target/release/rod.dll +0 -0
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 CoreLauncher
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 CoreLauncher
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
# rod
|
|
2
|
-
Custom webview implementation for bun based on tauri libraries
|
|
1
|
+
# rod
|
|
2
|
+
Custom webview implementation for bun based on tauri libraries.
|
|
3
|
+
|
|
4
|
+
# Required system dependencies
|
|
5
|
+
Below are the dependencies required to use this package.
|
|
6
|
+
## Windows
|
|
7
|
+
Edge webview runtime installed
|
|
8
|
+
|
|
9
|
+
## Linux
|
|
10
|
+
| **Distro** | **Packages** |
|
|
11
|
+
|---------------|----------------------------------------------------------------------|
|
|
12
|
+
| Arch Linux | `gtk3 webkit2gtk-4.1 xdotool libappindicator-gtk3` |
|
|
13
|
+
| Debian/Ubuntu | `libgtk-3-dev libwebkit2gtk-4.1-dev libxdo-dev libappindicator3-dev` |
|
|
14
|
+
| Fedora | `gtk3-devel webkit2gtk4.1-devel` |
|
|
15
|
+
|
|
16
|
+
# Publishing a new version
|
|
17
|
+
First create a new tag using `git tag v<version>` and then publish it using `git push origin --tags`. Only do this after pushing all commits.
|
package/package.json
CHANGED
|
@@ -1,45 +1,46 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
2
|
+
"name": "@corelauncher/rod",
|
|
3
|
+
"version": "1.2.1",
|
|
4
|
+
"description": "Webview for bun based on tauri's tao and wry.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"corelauncher",
|
|
7
|
+
"webview",
|
|
8
|
+
"bun",
|
|
9
|
+
"tauri",
|
|
10
|
+
"tao",
|
|
11
|
+
"wry"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://github.com/CoreLauncher/rod#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/CoreLauncher/rod/issues"
|
|
16
|
+
},
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"author": "CoreByte",
|
|
19
|
+
"files": [
|
|
20
|
+
"LICENSE",
|
|
21
|
+
"README.md",
|
|
22
|
+
"/src-ts/*",
|
|
23
|
+
"/target/release/rod.dll",
|
|
24
|
+
"/target/release/librod.so"
|
|
25
|
+
],
|
|
26
|
+
"type": "module",
|
|
27
|
+
"main": "./src-ts/index.ts",
|
|
28
|
+
"module": "./src-ts/index.ts",
|
|
29
|
+
"scripts": {
|
|
30
|
+
"postinstall": "husky",
|
|
31
|
+
"dev": "bun run --watch ./src-playground/index.ts",
|
|
32
|
+
"lint": "bun run biome check --fix",
|
|
33
|
+
"knip": "bun run knip-bun",
|
|
34
|
+
"update-version": "bun run ./scripts/update-version.ts"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"tiny-typed-emitter": "^2.1.0"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@biomejs/biome": "2.3.11",
|
|
41
|
+
"@types/bun": "1.3.6",
|
|
42
|
+
"husky": "^9.1.7",
|
|
43
|
+
"typescript": "^5",
|
|
44
|
+
"knip": "^5.81.0"
|
|
45
|
+
}
|
|
45
46
|
}
|
package/src-ts/ffi.ts
CHANGED
|
@@ -6,6 +6,8 @@ if (process.env.WEBVIEW_PATH) {
|
|
|
6
6
|
library = { default: join(".", process.env.WEBVIEW_PATH) };
|
|
7
7
|
} else if (process.platform === "win32") {
|
|
8
8
|
library = await import("../target/release/rod.dll");
|
|
9
|
+
} else if (process.platform === "linux") {
|
|
10
|
+
library = await import("../target/release/librod.so");
|
|
9
11
|
} else {
|
|
10
12
|
throw new Error("Unsupported platform");
|
|
11
13
|
}
|
package/src-ts/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Rod from "./classes/rod";
|
|
2
|
+
import type Tray from "./classes/tray";
|
|
2
3
|
import type WebView from "./classes/webview";
|
|
3
4
|
import type Window from "./classes/window";
|
|
4
5
|
export default Rod;
|
|
@@ -6,3 +7,4 @@ export { Rod };
|
|
|
6
7
|
export * from "./types";
|
|
7
8
|
export type { WebView };
|
|
8
9
|
export type { Window };
|
|
10
|
+
export type { Tray };
|
|
Binary file
|
package/target/release/rod.dll
CHANGED
|
Binary file
|