Skip to content

Commit

Permalink
Merge pull request #2593 from ever-co/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
evereq authored Jun 9, 2024
2 parents a2f51cb + a706245 commit a1bec2b
Show file tree
Hide file tree
Showing 41 changed files with 633 additions and 285 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/desktop-server-api.apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ jobs:
DESKTOP_API_SERVER_APP_DESCRIPTION: 'Ever Teams API Server'
DESKTOP_API_SERVER_APP_ID: 'com.ever.everteamsapiserver'

- name: Print environment variable names
run: |
echo "Environment Variable Names:"
printenv | cut -d= -f1
- name: Build API Server App
run: 'yarn build:gauzy-api-server:windows:release:gh'
env:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/desktop.apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ jobs:
DESKTOP_TIMER_APP_DESCRIPTION: 'Ever Teams Desktop'
DESKTOP_TIMER_APP_ID: 'com.ever.everteamsdesktop'

- name: Print environment variable names
run: |
echo "Environment Variable Names:"
printenv | cut -d= -f1
- name: Build Desktop Timer App
run: 'yarn build:desktop-timer:windows:release:gh'
env:
Expand Down
3 changes: 2 additions & 1 deletion apps/server-web/.erb/configs/webpack.config.renderer.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ const configuration: webpack.Configuration = {
},
{
test: /\.s?css$/,
use: ['style-loader', 'css-loader', 'sass-loader'],
use: ['style-loader', 'css-loader', 'sass-loader', 'postcss-loader'],
exclude: /\.module\.s?(c|a)ss$/,
include: [webpackPaths.srcRendererPath],
},
// Fonts
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const configuration: webpack.Configuration = {
},
{
test: /\.s?(a|c)ss$/,
use: [MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader'],
use: [MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader', 'postcss-loader'],
exclude: /\.module\.s?(c|a)ss$/,
},
// Fonts
Expand Down
Binary file modified apps/server-web/assets/icon.icns
Binary file not shown.
Binary file modified apps/server-web/assets/icon.ico
Binary file not shown.
Binary file modified apps/server-web/assets/icon.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/server-web/assets/icons/gauzy/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/server-web/assets/linux/128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/server-web/assets/linux/16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/server-web/assets/linux/256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/server-web/assets/linux/32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/server-web/assets/linux/512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/server-web/assets/linux/64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
236 changes: 122 additions & 114 deletions apps/server-web/package.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,40 @@
{
"name": "@ever-teams/server-web",
"version": "0.1.0",
"version": "0.1.0",
"description": "Ever Teams Web Server",
"license": "AGPL-3.0",
"license": "AGPL-3.0",
"homepage": "https://ever.team",
"repository": {
"type": "git",
"url": "https://github.com/ever-co/ever-teams.git"
},
"bugs": {
"url": "https://github.com/ever-co/ever-teams/issues"
},
"type": "git",
"url": "https://github.com/ever-co/ever-teams.git"
},
"bugs": {
"url": "https://github.com/ever-co/ever-teams/issues"
},
"private": true,
"author": {
"name": "Ever Co. LTD",
"email": "[email protected]",
"url": "https://ever.co"
},
"name": "Ever Co. LTD",
"email": "[email protected]",
"url": "https://ever.co"
},
"main": "./src/main/main.ts",
"scripts": {
"build": "concurrently \"npm run build:main\" \"npm run build:renderer\"",
"build": "concurrently \"npm run build:main\" \"npm run build:renderer\"",
"build:dll": "cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.dev.dll.ts",
"build:main": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.main.prod.ts",
"build:renderer": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.renderer.prod.ts",
"postinstall": "ts-node .erb/scripts/check-native-dep.js && electron-builder install-app-deps && npm run build:dll",
"lint": "cross-env NODE_ENV=development eslint . --ext .js,.jsx,.ts,.tsx",
"package": "ts-node ./.erb/scripts/clean.js dist && npm run build && electron-builder build --publish never && npm run build:dll",
"pack:mac": "electron-builder build --mac --publish never && npm run build:dll",
"pack:win": "electron-builder build --win --publish never && npm run build:dll",
"pack:linux": "electron-builder build --linux --publish never && npm run build:dll",
"package": "electron-builder build --publish never && npm run build:dll",
"rebuild": "electron-rebuild --parallel --types prod,dev,optional --module-dir release/app",
"start": "ts-node ./.erb/scripts/check-port-in-use.js && npm run start:renderer",
"start:main": "cross-env NODE_ENV=development electronmon electronmon.js",
"start:preload": "cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.preload.dev.ts",
"start:renderer": "cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack serve --config ./.erb/configs/webpack.config.renderer.dev.ts",
"prepare:electron": "ts-node ./.erb/scripts/clean.js dist",
"test": "jest"
},
"dependencies": {
Expand All @@ -40,12 +44,12 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.16.0",
"electron-store": "^8.1.0"
"electron-store": "^8.1.0"
},
"devDependencies": {
"electron": "28.1.0",
"electron-builder": "^24.6.4",
"@electron/notarize": "^2.1.0",
"electron-builder": "^24.6.4",
"@electron/notarize": "^2.1.0",
"@electron/rebuild": "^3.3.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
"@teamsupercell/typings-for-css-modules-loader": "^2.5.2",
Expand Down Expand Up @@ -101,7 +105,8 @@
"webpack-bundle-analyzer": "^4.9.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1",
"webpack-merge": "^5.9.0"
"webpack-merge": "^5.9.0",
"postcss-loader": "^8.1.1"
},
"prettier": {
"singleQuote": true,
Expand Down Expand Up @@ -150,104 +155,107 @@
}
},
"engines": {
"node": ">=16.0.0",
"yarn": ">=1.13.0"
},
"build": {
"node": ">=16.0.0",
"yarn": ">=1.13.0"
},
"build": {
"appId": "co.ever.teamswebserver",
"artifactName": "${name}-${version}.${ext}",
"productName": "Ever Teams Web Server",
"productName": "Ever Teams Web Server",
"copyright": "Copyright © 2024-Present. Ever Co. LTD",
"asar": true,
"asarUnpack": "**\\*.{node,dll}",
"files": [
"dist",
"node_modules",
"package.json"
],
"afterSign": ".erb/scripts/notarize.js",
"mac": {
"category": "public.app-category.developer-tools",
"target": [
"zip",
"dmg"
],
"asarUnpack": "**/*.node",
"artifactName": "${name}-${version}.${ext}",
"type": "distribution",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "assets/entitlements.mac.plist",
"entitlementsInherit": "assets/entitlements.mac.plist"
},
"dmg": {
"sign": false
},
"asar": true,
"asarUnpack": "**\\*.{node,dll}",
"files": [
"dist",
"node_modules",
"package.json"
],
"afterSign": ".erb/scripts/notarize.js",
"mac": {
"category": "public.app-category.developer-tools",
"target": [
"zip",
"dmg"
],
"asarUnpack": "**/*.node",
"artifactName": "${name}-${version}.${ext}",
"type": "distribution",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "assets/entitlements.mac.plist",
"entitlementsInherit": "assets/entitlements.mac.plist"
},
"dmg": {
"contents": [
{
"x": 130,
"y": 220
},
{
"x": 410,
"y": 220,
"type": "link",
"path": "/Applications"
}
]
},
"win": {
"publisherName": "Ever",
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
}
],
"verifyUpdateCodeSignature": false,
"requestedExecutionLevel": "requireAdministrator"
},
"linux": {
"target": [
"AppImage",
"deb",
"tar.gz"
],
"executableName": "ever-teams-web-server",
"artifactName": "${name}-${version}.${ext}",
"synopsis": "Server",
"category": "Development"
},
"directories": {
"app": "release/app",
"buildResources": "assets",
"output": "release/build"
},
"extraResources": [
"./assets/**"
],
"publish": [{
"provider": "github",
"repo": "ever-teams-web-server",
"releaseType": "release"
},
{
"provider": "spaces",
"name": "ever",
"region": "sfo3",
"path": "/ever-teams-web-server",
"acl": "public-read"
}
]
},
"electronmon": {
"patterns": [
"!**/**",
"src/main/**"
],
"logLevel": "quiet"
}
"icon": "icon.icns",
"sign": false,
"contents": [
{
"x": 130,
"y": 220
},
{
"x": 410,
"y": 220,
"type": "link",
"path": "/Applications"
}
]
},
"win": {
"icon": "icon.ico",
"publisherName": "Ever",
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
}
],
"verifyUpdateCodeSignature": false,
"requestedExecutionLevel": "requireAdministrator"
},
"linux": {
"icon": "linux",
"target": [
"AppImage",
"deb",
"tar.gz"
],
"executableName": "ever-teams-web-server",
"artifactName": "${name}-${version}.${ext}",
"synopsis": "Server",
"category": "Development"
},
"directories": {
"app": "release/app",
"buildResources": "assets",
"output": "release/build"
},
"extraResources": [
"./assets/**",
"./release/app/dist/standalone/**"
],
"publish": [
{
"provider": "github",
"repo": "ever-teams-web-server",
"releaseType": "release"
},
{
"provider": "spaces",
"name": "ever",
"region": "sfo3",
"path": "/ever-teams-web-server",
"acl": "public-read"
}
]
},
"electronmon": {
"patterns": [
"!**/**",
"src/main/**"
],
"logLevel": "quiet"
}
}
3 changes: 3 additions & 0 deletions apps/server-web/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
plugins: [require('tailwindcss'), require('autoprefixer')],
};
10 changes: 5 additions & 5 deletions apps/server-web/release/app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions apps/server-web/release/app/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "electron-react-boilerplate",
"version": "4.6.0",
"description": "A foundation for scalable desktop apps",
"license": "MIT",
"name": "ever-teams-server-web",
"version": "0.1.0",
"description": "Ever Teams Web Server",
"license": "AGPL-3.0",
"author": {
"name": "Electron React Boilerplate Maintainers",
"email": "[email protected]",
"url": "https://github.com/electron-react-boilerplate"
"name": "Ever Co. LTD",
"email": "[email protected]",
"url": "https://ever.co"
},
"main": "./dist/main/main.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion apps/server-web/src/main/helpers/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ export const EventLists = {
webServerStarted: 'WEB_SERVER_STARTED',
webServerStopped: 'WEB_SERVER_STOPPED',
webServerStart: 'WEB_SERVER_START',
webServerStop: 'WEB_SERVER_STOP'
webServerStop: 'WEB_SERVER_STOP',
gotoSetting: 'GO_TO_SETTING'
}
Loading

0 comments on commit a1bec2b

Please sign in to comment.