Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 47194a8

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 a36db86 commit 47194a8

File tree

5 files changed

+30
-9
lines changed

5 files changed

+30
-9
lines changed

Formula/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This directory houses the [Homebrew](https://brew.sh/) formula that enables users to:
2+
3+
```shell
4+
brew install IBM/prompt-declaration-language/pdl
5+
```

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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Toolbar, ToolbarGroup, ToolbarContent } from "@patternfly/react-core"
22

33
import ToolbarAsToggle from "./ToolbarAsToggle"
44
import ToolbarSMLToggle from "./ToolbarSMLToggle"
5-
import ToolbarReplayButton from "./ToolbarReplayButton"
5+
// import ToolbarReplayButton from "./ToolbarReplayButton"
66
import ToolbarShowSourceButton from "./ToolbarShowSourceButton"
77

88
const alignEnd = { default: "alignEnd" as const }
@@ -26,14 +26,14 @@ export default function MasonryToolbar({
2626
setAs,
2727
sml,
2828
setSML,
29-
block,
30-
setValue,
29+
// block,
30+
// setValue,
3131
}: Props) {
3232
return (
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)