Skip to content

Commit eb04538

Browse files
committed
Merge branch 'development'
2 parents c541536 + 758e330 commit eb04538

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+2350
-464
lines changed

.circleci/config.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ commands:
100100
parameters:
101101
target-arch:
102102
type: string
103+
target-triple:
104+
type: string
103105
steps:
104106
- run: |
105107
export DEPLOY_ARTIFACT_USERNAME=$REPO_TYPEDB_USERNAME
@@ -110,13 +112,18 @@ commands:
110112
corepack enable
111113
corepack prepare [email protected] --activate
112114
pnpm build
113-
npx tauri build
114-
bazel run //:deploy-mac-<<parameters.target-arch>>-dmg -- snapshot
115+
rustup target add <<parameters.target-triple>>
116+
npx tauri build --target <<parameters.target-triple>>
117+
# --define version doesn't seem to work, so we just write it into the VERSION file.
118+
git rev-parse HEAD > VERSION
119+
bazel run --define version=$(git rev-parse HEAD) //:deploy-mac-<<parameters.target-arch>>-dmg -- snapshot
115120
116121
deploy-mac-release:
117122
parameters:
118123
target-arch:
119124
type: string
125+
target-triple:
126+
type: string
120127
steps:
121128
- run: |
122129
export DEPLOY_ARTIFACT_USERNAME=$REPO_TYPEDB_USERNAME
@@ -127,7 +134,8 @@ commands:
127134
corepack enable
128135
corepack prepare [email protected] --activate
129136
pnpm build
130-
npx tauri build
137+
rustup target add <<parameters.target-triple>>
138+
npx tauri build --target <<parameters.target-triple>>
131139
bazel run //:deploy-mac-<<parameters.target-arch>>-dmg -- release
132140
133141
deploy-linux-snapshot:
@@ -155,7 +163,9 @@ commands:
155163
sudo ln -sf /usr/bin/python3.8 /usr/bin/python3
156164
export PATH="/usr/bin:$PATH"
157165
npx tauri build
158-
bazel run //:deploy-linux-<<parameters.target-arch>>-deb --compilation_mode=opt -- snapshot
166+
# --define version doesn't seem to work, so we just write it into the VERSION file.
167+
git rev-parse HEAD > VERSION
168+
bazel run --define version=$(git rev-parse HEAD) //:deploy-linux-<<parameters.target-arch>>-deb --compilation_mode=opt -- snapshot
159169
160170
deploy-linux-release:
161171
parameters:
@@ -250,6 +260,7 @@ jobs:
250260
- install-rust
251261
- deploy-mac-snapshot:
252262
target-arch: arm64
263+
target-triple: aarch64-apple-darwin
253264

254265
deploy-mac-x86_64-snapshot:
255266
executor: mac-arm64
@@ -264,6 +275,7 @@ jobs:
264275
- install-rust
265276
- deploy-mac-snapshot:
266277
target-arch: x86_64
278+
target-triple: x86_64-apple-darwin
267279

268280
deploy-linux-arm64-snapshot:
269281
executor: linux-arm64
@@ -331,6 +343,7 @@ jobs:
331343
- install-rust
332344
- deploy-mac-release:
333345
target-arch: arm64
346+
target-triple: aarch64-apple-darwin
334347

335348
deploy-mac-x86_64-release:
336349
executor: mac-arm64
@@ -345,6 +358,7 @@ jobs:
345358
- install-rust
346359
- deploy-mac-release:
347360
target-arch: x86_64
361+
target-triple: x86_64-apple-darwin
348362

349363
deploy-linux-arm64-release:
350364
executor: linux-arm64

.circleci/windows/deploy_snapshot.bat

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ ECHO Building Windows installer...
1010

1111
SET DEPLOY_ARTIFACT_USERNAME=%REPO_TYPEDB_USERNAME%
1212
SET DEPLOY_ARTIFACT_PASSWORD=%REPO_TYPEDB_PASSWORD%
13-
14-
bazel --output_user_root=C:/b run //:deploy-windows-x86_64-msi --compilation_mode=opt -- snapshot
13+
git rev-parse HEAD > version_snapshot.txt
14+
set /p VER=<version_snapshot.txt
15+
# --define version doesn't seem to work, so we just write it into the VERSION file.
16+
git rev-parse HEAD > VERSION
17+
bazel --output_user_root=C:/b run --define version=%VER% //:deploy-windows-x86_64-msi --compilation_mode=opt -- snapshot
1518
IF %errorlevel% NEQ 0 EXIT /b %errorlevel%

BUILD

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,27 @@ exports_files(["VERSION"])
1919

2020
genrule(
2121
name = "native-artifact-mac-x86_64-dmg",
22-
outs = ["typedb-studio_3.4.0-rc1_amd64.dmg"],
22+
outs = ["typedb-studio-amd64.dmg"],
2323
cmd = """
24-
cp src-tauri/target/release/bundle/dmg/*.dmg "$(OUTS)"
24+
cp src-tauri/target/x86_64-apple-darwin/release/bundle/dmg/*.dmg "$(OUTS)"
2525
""",
2626
tags = ["local"],
2727
target_compatible_with = constraint_mac_x86_64,
2828
)
2929

3030
genrule(
3131
name = "native-artifact-mac-arm64-dmg",
32-
outs = ["typedb-studio_3.4.0-rc1_aarch64.dmg"],
32+
outs = ["typedb-studio-aarch64.dmg"],
3333
cmd = """
34-
cp src-tauri/target/release/bundle/dmg/*.dmg "$(OUTS)"
34+
cp src-tauri/target/aarch64-apple-darwin/release/bundle/dmg/*.dmg "$(OUTS)"
3535
""",
3636
tags = ["local"],
3737
target_compatible_with = constraint_mac_arm64,
3838
)
3939

4040
genrule(
4141
name = "native-artifact-linux-arm64-deb",
42-
outs = ["typedb-studio_3.4.0-rc1_arm64.deb"],
42+
outs = ["typedb-studio-arm64.deb"],
4343
cmd = """
4444
cp src-tauri/target/release/bundle/deb/*.deb "$(OUTS)"
4545
""",
@@ -49,7 +49,7 @@ genrule(
4949

5050
genrule(
5151
name = "native-artifact-linux-x86_64-deb",
52-
outs = ["typedb-studio_3.4.0-rc1_amd64.deb"],
52+
outs = ["typedb-studio-amd64.deb"],
5353
cmd = """
5454
cp src-tauri/target/release/bundle/deb/*.deb "$(OUTS)"
5555
""",
@@ -59,7 +59,7 @@ genrule(
5959

6060
genrule(
6161
name = "native-artifact-windows-x86_64-msi",
62-
outs = ["typedb-studio_3.4.0-rc1_amd64.msi"],
62+
outs = ["typedb-studio-amd64.msi"],
6363
cmd = """
6464
cp src-tauri/target/release/bundle/msi/*.msi "$(OUTS)"
6565
""",

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ all within a unified environment.
1212

1313
- [Install TypeDB Studio Desktop](https://typedb.com/docs/home/install-tools#_studio)
1414
- [Open studio.typedb.com](https://studio.typedb.com)
15-
- [Read docs](https://typedb.com/docs/manual/tools/studio)
15+
- [Read docs](https://typedb.com/docs/tools/studio)
1616

1717
## Quickstart
1818

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.5.9
1+
3.6.0

angular.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@
5959
"outputHashing": "all"
6060
},
6161
"development": {
62+
"optimization": false,
63+
"extractLicenses": false,
64+
"sourceMap": true,
65+
"fileReplacements": [
66+
{
67+
"replace": "src/environments/environment.ts",
68+
"with": "src/environments/environment.dev.ts"
69+
}
70+
]
71+
},
72+
"local": {
6273
"optimization": false,
6374
"extractLicenses": false,
6475
"sourceMap": true
@@ -77,9 +88,12 @@
7788
},
7889
"development": {
7990
"buildTarget": "typedb-studio:build:development"
91+
},
92+
"local": {
93+
"buildTarget": "typedb-studio:build:local"
8094
}
8195
},
82-
"defaultConfiguration": "development"
96+
"defaultConfiguration": "local"
8397
}
8498
}
8599
}

netlify.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
[build]
2-
command = "pnpm run build"
32
publish = "dist/typedb-studio/browser"
43

4+
[context.development]
5+
command = "pnpm run build:dev"
6+
7+
[context.production]
8+
command = "pnpm run build:prod"
9+
10+
[context.deploy-preview]
11+
command = "pnpm run build:dev"
12+
513
[build.environment]
614
DISCORD_WEBHOOK_URL = "https://discord.com/api/webhooks/1317118973443309649/CqydmmRN9Ao1G49fg6QWroNujeoLJm7Qx__bO6gn1yHX9jKHWbQwyV3GMdD9GxzW9FnX"
715

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
"name": "typedb-studio",
3-
"version": "3.5.9",
3+
"version": "3.6.0",
44
"scripts": {
55
"ng": "ng",
66
"generate-grammar": "lezer-generator --typeScript src/framework/codemirror-lang-typeql/typeql.grammar -o src/framework/codemirror-lang-typeql/generated/typeql.grammar.generated",
77
"start": "ng serve",
88
"build": "ng build",
9+
"build:dev": "ng build -c development",
10+
"build:prod": "ng build -c production",
911
"watch": "ng build --watch --configuration development",
1012
"tauri": "tauri"
1113
},
@@ -38,7 +40,8 @@
3840
"graphology-layout-force": "0.2.4",
3941
"graphology-layout-forceatlas2": "0.10.1",
4042
"graphology-layout-noverlap": "0.4.2",
41-
"posthog-js": "1.187.2",
43+
"ngx-markdown": "20.1.0",
44+
"posthog-js": "1.268.8",
4245
"prismjs": "1.29.0",
4346
"rxjs": "~7.8.0",
4447
"sigma": "3.0.1",

0 commit comments

Comments
 (0)