Skip to content

Commit ce09c60

Browse files
committed
Use .json instead of .exe-plugin for process plugins
1 parent f7deed7 commit ce09c60

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ await builder.addPlatform({
3333
});
3434

3535
// write it to a file
36-
await builder.writeToPath("plugin.exe-plugin");
36+
await builder.writeToPath("plugin.json");
3737
```
3838

3939
1. Build each plugin for each platform.
@@ -42,4 +42,4 @@ await builder.writeToPath("plugin.exe-plugin");
4242
```shell
4343
deno run --allow-read=. --allow-write=. create_process_plugin.ts
4444
```
45-
4. Upload the plugin.exe-plugin file and all the zip files to the GitHub release.
45+
4. Upload the `plugin.json` file and all the zip files to the GitHub release.

process_plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { extractCargoVersion } from "./cargo.ts";
21
import { getChecksum } from "./hash.ts";
32

43
export type Platform = "windows-x86_64" | "linux-x86_64" | "darwin-x86_64" | "darwin-aarch64";
@@ -39,6 +38,7 @@ export interface PluginFileBuilderOptions {
3938
export class PluginFileBuilder {
4039
#output: any = {
4140
schemaVersion: 2,
41+
kind: "process",
4242
};
4343

4444
constructor(options: PluginFileBuilderOptions) {
@@ -110,7 +110,7 @@ export async function createDprintOrgProcessPlugin({ pluginName, version, platfo
110110
}
111111
}
112112

113-
await builder.writeToPath("plugin.exe-plugin");
113+
await builder.writeToPath("plugin.json");
114114

115115
async function addPlatform(platform: Platform) {
116116
const zipFileName = getStandardZipFileName(builder.pluginName, platform);

0 commit comments

Comments
 (0)