Skip to content

Commit

Permalink
attempting to solve build problems
Browse files Browse the repository at this point in the history
  • Loading branch information
robobenklein committed Feb 23, 2024
1 parent 3dc6602 commit ab1b200
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 35 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:

- run: yarn install

- run: yarn electron rebuild

- run: yarn electron build

- run: yarn electron package
Expand Down
12 changes: 1 addition & 11 deletions applications/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,5 @@
},
"theia": {
"target": "browser"
},
"theiaPluginsDir": "plugins",
"theiaPlugins": {
"vscode.git": "https://open-vsx.org/api/vscode/git/1.52.1/file/vscode.git-1.52.1.vsix",
"vscode.markdown-language-features": "https://open-vsx.org/api/vscode/markdown-language-features/1.39.2/file/vscode.markdown-language-features-1.39.2.vsix",
"vscode-builtin-extensions-pack": "https://open-vsx.org/api/eclipse-theia/builtin-extension-pack/1.50.1/file/eclipse-theia.builtin-extension-pack-1.50.1.vsix"
},
"theiaPluginsExcludeIds": [
"vscode.extension-editing",
"vscode.microsoft-authentication"
]
}
}
4 changes: 2 additions & 2 deletions applications/electron/electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ appId: coderibbon.coderibbon-theia
productName: CodeRibbon-Preview

electronDist: ../../node_modules/electron/dist
electronVersion: 15.5.7
electronVersion: 23.2.4
asar: false

directories:
Expand All @@ -14,7 +14,7 @@ files:
- scripts
- "!**node_modules/electron/**"
extraResources:
- from: plugins
- from: ../../plugins
to: app/plugins

linux:
Expand Down
35 changes: 16 additions & 19 deletions applications/electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,28 @@
"electron-builder": "^24.12.0"
},
"scripts": {
"prepare": "yarn build && yarn download:plugins",
"clean": "theia clean && rimraf node_modules",
"clean:dist": "rimraf dist",
"build": "yarn -s bundle",
"bundle": "theia build",
"rebuild": "theia rebuild:electron --cacheRoot ../..",
"build": "yarn -s rebuild && theia build --app-target=\"electron\" --mode development",
"build:prod": "yarn -s rebuild && theia build --app-target=\"electron\"",
"rebuild": "theia rebuild:electron --cacheRoot .",
"watch": "concurrently -n compile,bundle \"theiaext watch --preserveWatchOutput\" \"theia build --watch --mode development\"",
"start": "yarn -s rebuild && electron scripts/theia-electron-main.js",
"start": "electron scripts/theia-electron-main.js --plugins=local-dir:../../plugins",
"start:debug": "yarn start --log-level=debug",
"package": "yarn clean:dist && electron-builder -c.mac.identity=null --publish never",
"package": "yarn clean:dist && yarn rebuild && electron-builder -c.mac.identity=null --publish never",
"deploy": "yarn clean:dist && electron-builder -c.mac.identity=null --publish always",
"package:preview": "yarn clean:dist && electron-builder -c.mac.identity=null --dir",
"package:preview": "yarn clean:dist && yarn rebuild && electron-builder -c.mac.identity=null --dir",
"update:checksum": "ts-node scripts/update-checksum.ts",
"update:next": "ts-node ../../scripts/update-theia-to-next.ts",
"download:plugins": "theia download:plugins --rate-limit=1"
"update:next": "ts-node ../../scripts/update-theia-to-next.ts"
},
"theia": {
"target": "electron"
},
"theiaPluginsDir": "plugins",
"theiaPlugins": {
"vscode.git": "https://open-vsx.org/api/vscode/git/1.52.1/file/vscode.git-1.52.1.vsix"
},
"theiaPluginsExcludeIds": [
"vscode.extension-editing",
"vscode.microsoft-authentication"
]
"target": "electron",
"frontend": {
"config": {
"electron": {
"showWindowEarly": false
}
}
}
}
}
19 changes: 16 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@
"url": "https://github.com/CodeRibbon/CodeRibbon-Theia/issues"
},
"scripts": {
"clean": "lerna run clean && rimraf node_modules",
"build": "lerna run build",
"prepare": "lerna run prepare --concurrency 1",
"watch": "lerna run --parallel watch",
"lint": "lerna run lint",
"lint:fix": "lerna run lint:fix",
"clean": "lerna run clean && rimraf node_modules",
"build": "lerna run build",
"bundle": "lerna run bundle",
"test": "lerna run test",
"browser": "yarn --cwd applications/browser",
"electron": "yarn --cwd applications/electron"
"electron": "yarn --cwd applications/electron",
"download:plugins": "theia download:plugins --rate-limit=15 --parallel=false --ignore-errors"
},
"devDependencies": {
"@theia/cli": "1.46.1",
Expand All @@ -42,5 +43,17 @@
"workspaces": [
"coderibbon-theia",
"applications/*"
],
"theiaPluginsDir": "plugins",
"theiaPlugins": {
"vscode.git": "https://open-vsx.org/api/vscode/git/1.52.1/file/vscode.git-1.52.1.vsix",
"vscode.markdown-language-features": "https://open-vsx.org/api/vscode/markdown-language-features/1.39.2/file/vscode.markdown-language-features-1.39.2.vsix",
"vscode-builtin-extensions-pack": "https://open-vsx.org/api/eclipse-theia/builtin-extension-pack/1.50.1/file/eclipse-theia.builtin-extension-pack-1.50.1.vsix"
},
"theiaPluginsExcludeIds": [
"vscode.extension-editing",
"vscode.microsoft-authentication",
"ms-vscode.js-debug-companion",
"VisualStudioExptTeam.vscodeintellicode"
]
}

0 comments on commit ab1b200

Please sign in to comment.