-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Firecamp Desktop Apps
- Loading branch information
Showing
101 changed files
with
3,804 additions
and
732 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ cypress/videos | |
*.zip | ||
*.crx | ||
*.pem | ||
!x-dev-certs/**/*.pem | ||
update.xml | ||
.idea | ||
package-lock.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.idea/* | ||
.nyc_output | ||
.vscode | ||
build | ||
node_modules | ||
test | ||
src/**.js | ||
coverage | ||
*.log | ||
!src/declarations.d.ts | ||
dev-app-update.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
shamefully-hoist=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>com.apple.security.cs.allow-unsigned-executable-memory</key> | ||
<true/> | ||
<key>com.apple.security.cs.allow-jit</key> | ||
<true/> | ||
</dict> | ||
</plist> |
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 not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
{ | ||
"name": "@firecamp/electron", | ||
"productName": "Firecamp", | ||
"version": "3.3.0-beta.2", | ||
"description": "The Firecamp Desktop Application", | ||
"main": "build/main.js", | ||
"private": true, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/firecamp-dev/firecamp.git", | ||
"directory": "packages/firecamp-electron" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"start": "pnpm build && electron .", | ||
"build": "tsc", | ||
"release": "pnpm build && electron-builder -mlw --publish always", | ||
"pack": "pnpm build && electron-builder --dir -c.compression=store -c.mac.identity=null", | ||
"postinstall": "electron-builder install-app-deps" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "AGPLv3", | ||
"dependencies": { | ||
"@firecamp/rest-executor": "workspace:*", | ||
"@firecamp/scripts": "workspace:*", | ||
"@firecamp/socket.io-executor": "workspace:*", | ||
"@firecamp/ws-executor": "workspace:*", | ||
"electron-is-dev": "^2.0.0", | ||
"electron-log": "^5.0.0", | ||
"electron-notarize": "^1.2.2", | ||
"electron-updater": "^6.1.4", | ||
"react-fast-compare": "^3.2.2" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.8.9", | ||
"electron": "^27.1.2", | ||
"electron-builder": "^24.13.3" | ||
}, | ||
"build": { | ||
"appId": "com.firecamp.electron", | ||
"generateUpdatesFilesForAllChannels": true, | ||
"productName": "Firecamp", | ||
"afterSign": "scripts/notarize.js", | ||
"files": [ | ||
"./build/**/*", | ||
"package.json", | ||
{ | ||
"from": "../../build/production", | ||
"to": "app" | ||
} | ||
], | ||
"directories": { | ||
"buildResources": "assets" | ||
}, | ||
"dmg": { | ||
"sign": false | ||
}, | ||
"mac": { | ||
"artifactName": "Firecamp-${version}.${arch}.${ext}", | ||
"executableName": "Firecamp", | ||
"type": "distribution", | ||
"target": { | ||
"target": "default", | ||
"arch": [ | ||
"x64", | ||
"arm64" | ||
] | ||
}, | ||
"category": "public.app-category.developer-tools", | ||
"entitlements": "assets/entitlements.mac.plist", | ||
"entitlementsInherit": "assets/entitlements.mac.plist", | ||
"icon": "icons/mac/512.png", | ||
"hardenedRuntime": true, | ||
"gatekeeperAssess": false, | ||
"publish": [ | ||
{ | ||
"provider": "github", | ||
"owner": "firecamp-dev", | ||
"repo": "firecamp" | ||
}, | ||
{ | ||
"provider": "spaces", | ||
"name": "firecamp", | ||
"region": "ams3", | ||
"channel": "latest", | ||
"path": "/electron-apps/mac", | ||
"acl": "public-read" | ||
} | ||
] | ||
}, | ||
"linux": { | ||
"artifactName": "Firecamp-${version}.${arch}.${ext}", | ||
"executableName": "Firecamp", | ||
"icon": "icons/mac/512.png", | ||
"category": "Development", | ||
"target": { | ||
"target": "AppImage", | ||
"arch": [ | ||
"x64" | ||
] | ||
}, | ||
"publish": [ | ||
{ | ||
"provider": "github", | ||
"owner": "firecamp-dev", | ||
"repo": "firecamp" | ||
}, | ||
{ | ||
"provider": "spaces", | ||
"name": "firecamp", | ||
"region": "ams3", | ||
"channel": "latest", | ||
"path": "/electron-apps/linux", | ||
"acl": "public-read" | ||
} | ||
] | ||
}, | ||
"nsis": { | ||
"oneClick": false, | ||
"allowToChangeInstallationDirectory": true | ||
}, | ||
"win": { | ||
"artifactName": "Firecamp-${version}.${arch}.${ext}", | ||
"executableName": "Firecamp", | ||
"icon": "icons/win/logo.ico", | ||
"target": { | ||
"target": "nsis", | ||
"arch": [ | ||
"x64" | ||
] | ||
}, | ||
"verifyUpdateCodeSignature": false, | ||
"publish": [ | ||
{ | ||
"provider": "github", | ||
"owner": "firecamp-dev", | ||
"repo": "firecamp" | ||
}, | ||
{ | ||
"provider": "spaces", | ||
"name": "firecamp", | ||
"region": "ams3", | ||
"channel": "latest", | ||
"path": "/electron-apps/win", | ||
"acl": "public-read" | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
const { notarize } = require('electron-notarize'); | ||
|
||
exports.default = async function notarizing(context) { | ||
console.log('notarisation started manually.'); | ||
const { electronPlatformName, appOutDir } = context; | ||
if ( | ||
electronPlatformName !== 'darwin' || | ||
!process.env.AID || | ||
!process.env.APASS | ||
) { | ||
console.log( | ||
'not running notarize. platform is not macos or environment not set up.' | ||
); | ||
return; | ||
} | ||
|
||
const appName = context.packager.appInfo.productFilename; | ||
|
||
try { | ||
return await notarize({ | ||
appBundleId: process.env.appBundleId, | ||
appPath: `${appOutDir}/${appName}.app`, | ||
appleId: process.env.AID, | ||
appleIdPassword: process.env.APASS, | ||
}); | ||
} catch (e) { | ||
console.log('notarize error', e); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
const path = require('path'); | ||
const isDev = require('electron-is-dev'); | ||
|
||
let trayIcon: string; | ||
let appIcon: string; | ||
|
||
// dev environment tray icon paths | ||
if (isDev) { | ||
if (process.platform === 'linux') | ||
trayIcon = path.join(__dirname, '../assets/icons/mac/64.png'); //22x22 | ||
else if (process.platform === 'darwin') | ||
trayIcon = path.join(__dirname, '../assets/icons/mac/64.png'); // 16x16 | ||
else if (process.platform === 'win32') | ||
trayIcon = path.join(__dirname, '.../assets/icons/mac/64.png'); //32x32 | ||
} else if (process.platform === 'linux') | ||
// prod. environment tray icon paths | ||
trayIcon = path.join(process.resourcesPath, 'assets/icons/mac/64.png'); | ||
// 22x22 | ||
else if (process.platform === 'darwin') | ||
trayIcon = path.join(process.resourcesPath, 'assets/icons/images/16x16.png'); | ||
// 16x16 | ||
else if (process.platform === 'win32') | ||
trayIcon = path.join(process.resourcesPath, 'assets/icons/mac/64.png'); // 32x32 | ||
|
||
// App icon paths | ||
if (process.platform === 'linux') | ||
appIcon = path.join(__dirname, '../assets/icons/mac/512x512.png'); | ||
else if (process.platform === 'darwin') | ||
appIcon = path.join(__dirname, '../assets/mac/icon.icns'); | ||
else if (process.platform === 'win32') | ||
appIcon = path.join(__dirname, '../assets/icons/win/icon.ico'); | ||
|
||
export { appIcon, trayIcon }; |
Oops, something went wrong.