Skip to content

Commit 2b0ba9e

Browse files
committed
fix(release): publish 0.1.1 with windows icon
1 parent 9a98c96 commit 2b0ba9e

12 files changed

Lines changed: 106 additions & 26 deletions

File tree

apps/server/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "coder-studio"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55

66
[build-dependencies]

apps/server/icons/icon.ico

4.88 KB
Binary file not shown.

apps/server/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"productName": "Coder Studio",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"identifier": "com.spencerkit.coderstudio",
55
"build": {
66
"beforeDevCommand": "pnpm dev",

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "coder-studio-workspace",
33
"private": true,
4-
"version": "0.1.0",
4+
"version": "0.1.1",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -24,7 +24,8 @@
2424
"test:cli": "pnpm build:cli && node --test tests/cli/config.test.mjs tests/cli/platform.test.mjs tests/release/release.test.mjs",
2525
"test:smoke": "node --test tests/smoke/cli-smoke.test.mjs",
2626
"pack:local": "pnpm release:check && node scripts/release/pack-local.mjs",
27-
"release:check": "pnpm version:check && pnpm build:web && pnpm build:server && pnpm build:cli && pnpm build:packages",
27+
"release:assets:check": "node scripts/release/check-assets.mjs",
28+
"release:check": "pnpm version:check && pnpm release:assets:check && pnpm build:web && pnpm build:server && pnpm build:cli && pnpm build:packages",
2829
"release:verify": "pnpm test:cli && pnpm test:server && pnpm pack:local && pnpm test:smoke",
2930
"release:verify:full": "pnpm release:verify && pnpm test:e2e:release",
3031
"version:sync": "node scripts/release/sync-version.mjs",

packages/cli/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@spencer-kit/coder-studio",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"type": "module",
55
"description": "CLI runtime manager for Coder Studio.",
66
"bin": {
@@ -12,10 +12,10 @@
1212
"README.md"
1313
],
1414
"optionalDependencies": {
15-
"@spencer-kit/coder-studio-linux-x64": "0.1.0",
16-
"@spencer-kit/coder-studio-darwin-arm64": "0.1.0",
17-
"@spencer-kit/coder-studio-darwin-x64": "0.1.0",
18-
"@spencer-kit/coder-studio-win32-x64": "0.1.0"
15+
"@spencer-kit/coder-studio-linux-x64": "0.1.1",
16+
"@spencer-kit/coder-studio-darwin-arm64": "0.1.1",
17+
"@spencer-kit/coder-studio-darwin-x64": "0.1.1",
18+
"@spencer-kit/coder-studio-win32-x64": "0.1.1"
1919
},
2020
"publishConfig": {
2121
"access": "public"

scripts/release/check-assets.mjs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import fs from 'node:fs/promises';
2+
import path from 'node:path';
3+
import { pathToFileURL } from 'node:url';
4+
import { SERVER_APP_DIR } from '../lib/package-matrix.mjs';
5+
6+
const REQUIRED_ASSETS = [
7+
{
8+
label: 'tauri icon png',
9+
filePath: path.join(SERVER_APP_DIR, 'icons', 'icon.png'),
10+
},
11+
{
12+
label: 'windows icon',
13+
filePath: path.join(SERVER_APP_DIR, 'icons', 'icon.ico'),
14+
},
15+
];
16+
17+
function isDirectRun() {
18+
return process.argv[1] ? pathToFileURL(process.argv[1]).href === import.meta.url : false;
19+
}
20+
21+
async function assertFileExists(label, filePath) {
22+
const stat = await fs.stat(filePath);
23+
if (!stat.isFile() || stat.size <= 0) {
24+
throw new Error(`${label} is missing or empty: ${filePath}`);
25+
}
26+
}
27+
28+
export async function assertReleaseAssets() {
29+
for (const asset of REQUIRED_ASSETS) {
30+
await assertFileExists(asset.label, asset.filePath);
31+
}
32+
}
33+
34+
if (isDirectRun()) {
35+
try {
36+
await assertReleaseAssets();
37+
console.log('release assets are present');
38+
} catch (error) {
39+
console.error(error instanceof Error ? error.message : String(error));
40+
process.exitCode = 1;
41+
}
42+
}

templates/npm/platform-packages/coder-studio-darwin-arm64/package.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
{
22
"name": "@spencer-kit/coder-studio-darwin-arm64",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "macOS arm64 runtime bundle for Coder Studio.",
5-
"os": ["darwin"],
6-
"cpu": ["arm64"],
7-
"files": ["bin", "dist", "README.md"],
5+
"os": [
6+
"darwin"
7+
],
8+
"cpu": [
9+
"arm64"
10+
],
11+
"files": [
12+
"bin",
13+
"dist",
14+
"README.md"
15+
],
816
"publishConfig": {
917
"access": "public"
1018
}

templates/npm/platform-packages/coder-studio-darwin-x64/package.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
{
22
"name": "@spencer-kit/coder-studio-darwin-x64",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "macOS x64 runtime bundle for Coder Studio.",
5-
"os": ["darwin"],
6-
"cpu": ["x64"],
7-
"files": ["bin", "dist", "README.md"],
5+
"os": [
6+
"darwin"
7+
],
8+
"cpu": [
9+
"x64"
10+
],
11+
"files": [
12+
"bin",
13+
"dist",
14+
"README.md"
15+
],
816
"publishConfig": {
917
"access": "public"
1018
}

templates/npm/platform-packages/coder-studio-linux-x64/package.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
{
22
"name": "@spencer-kit/coder-studio-linux-x64",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Linux x64 runtime bundle for Coder Studio.",
5-
"os": ["linux"],
6-
"cpu": ["x64"],
7-
"files": ["bin", "dist", "README.md"],
5+
"os": [
6+
"linux"
7+
],
8+
"cpu": [
9+
"x64"
10+
],
11+
"files": [
12+
"bin",
13+
"dist",
14+
"README.md"
15+
],
816
"publishConfig": {
917
"access": "public"
1018
}

0 commit comments

Comments
 (0)