Skip to content

Commit 784b7fc

Browse files
committed
feat: add homebrew formula
This also (for now) disables the Run button in the react ui, and disables packaging of the interpreter. Doing so currently results in notarization failures (macos) due to the interpreter resources not being signed. So we'll need to figure thatout before we can re-enable Run. Signed-off-by: Nick Mitchell <[email protected]>
1 parent 9183f01 commit 784b7fc

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

Formula/pdl.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
cask "pdl" do
2+
version "0.3.0"
3+
4+
name "pdl"
5+
desc "PDL is a declarative language designed for developers to create reliable, composable LLM prompts and integrate them into software systems."
6+
homepage "https://github.com/IBM/prompt-declaration-language"
7+
8+
url "https://github.com/IBM/prompt-declaration-language/releases/download/v#{version}/PDL_#{version}_universal.dmg"
9+
sha256 "35dcb304ea7355e4daa8330eab0500a1b754ffb6c7ac747a19f8783422dd6f1f"
10+
app "PDL.app"
11+
12+
# auto_updates true
13+
binary "#{appdir}/PDL.app/Contents/MacOS/PDL", target: "pdlv"
14+
15+
zap trash: "~/Library/Application\ Support/PDL"
16+
end

pdl-live-react/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
22
"name": "PDL",
33
"private": true,
4-
"version": "0.1.0",
4+
"version": "0.3.0",
55
"type": "module",
66
"scripts": {
7+
"prod:mac:1": "npm run tauri build -- --no-bundle --target=universal-apple-darwin",
8+
"prod:mac:2": "npm run tauri bundle -- --bundles dmg --target universal-apple-darwin",
9+
"prod:mac": "npm run prod:mac:1 && npm run prod:mac:2",
710
"dev": "vite",
811
"build": "tsc && vite build",
912
"build:app": "npm run prep_interpreter && npm run tauri build",

pdl-live-react/src-tauri/tauri.conf.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "PDL",
4-
"version": "0.1.0",
4+
"version": "0.3.0",
55
"identifier": "com.ibm.prompt-declaration-language.app",
66
"build": {
77
"beforeDevCommand": "npm run dev",
@@ -46,9 +46,6 @@
4646
"bundle": {
4747
"active": true,
4848
"targets": "all",
49-
"resources": {
50-
"../.venv/": "interpreter/"
51-
},
5249
"icon": [
5350
"icons/32x32.png",
5451
"icons/128x128.png",

pdl-live-react/src/view/masonry/Toolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function MasonryToolbar({
3333
<Toolbar className="pdl-masonry-toolbar">
3434
<ToolbarContent>
3535
<ToolbarGroup variant="action-group-plain">
36-
<ToolbarReplayButton block={block} setValue={setValue} />
36+
{/*<ToolbarReplayButton block={block} setValue={setValue} />*/}
3737
<ToolbarShowSourceButton />
3838
</ToolbarGroup>
3939
<ToolbarGroup align={alignEnd} variant="action-group">

0 commit comments

Comments
 (0)