Skip to content

Commit

Permalink
fix: fix build process for tizenbrew updater
Browse files Browse the repository at this point in the history
  • Loading branch information
reisxd committed Jun 28, 2024
1 parent 53d27c6 commit 99456aa
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-new-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
- name: Package Updater for Desktop
working-directory: tizenbrew-updater/TizenBrewUpdater
run: |
pkg -C GZip -t node18-win-x64,node18-linux-x64,node18-macos-arm64 -o dist/tizenbrew-updater service/dist/index.js
pkg -C GZip .
- name: Upload TizenBrew package artifact for Old Tizen
uses: actions/upload-artifact@v2
Expand Down
18 changes: 18 additions & 0 deletions tizenbrew-updater/TizenBrewUpdater/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "tizenbrew-updater",
"bin": "service/dist/index.js",
"main": "service/dist/index.js",
"pkg": {
"assets": [
"js/*.js",
"css/*.css",
"*.html"
],
"targets": [
"node18-linux-x64",
"node18-win-x64",
"node18-macos-arm64"
],
"outputPath": "dist"
}
}
3 changes: 2 additions & 1 deletion tizenbrew-updater/TizenBrewUpdater/service/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module.exports.onStart = function () {
const fetch = require('node-fetch');
const express = require('express');
const app = express();
app.use(express.static('./'));
app.use(express.static('/snapshot/TizenBrewUpdater'));
const fs = require('fs');
const server = new WebSocket.Server({ server: app.listen(8083) });

global.currentClient = null;
Expand Down

0 comments on commit 99456aa

Please sign in to comment.