Skip to content

Commit

Permalink
v1.3.0
Browse files Browse the repository at this point in the history
- Changed name and icon of the application (to WebCord).
- Made application ready for the repo name change.
- Added "Inspect", "Copy link" and "Copy link text" options in the right-click context menu.
- Implemented multiple switches to customize the behaviour of the CSP.
- Included hCaptcha websites to the Content Security Policy (#39).
- Implemented "Developer mode" switch.
- Made some menu bar improvements.
- Updated "electron-json-config" dependency to latest "beta" release.
- Splitted config to multiple files (this should make it less likely to broke itself).
- Added support for the source maps (for better debbuging with Typescript).
- Enabled strict syntax check at building with TSC.
- Updated Electron to the newer patch version (12.0.2).
- Updated Typescript to the newer patch version (4.2.3).
- Updated Eslint to the newer minior version (7.23.0).
- Improved userAgent.ts for the MacOS and Windows.
- Done some other minior code improvements.
  • Loading branch information
SpacingBat3 committed Apr 4, 2021
1 parent 7b2e3f4 commit 3222a06
Show file tree
Hide file tree
Showing 20 changed files with 581 additions and 373 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
run: npm run package -- -a armv7l

- name: Test build (ia32)
run: npm run package -- -a ia32
run: npm run package -- -a ia32
21 changes: 10 additions & 11 deletions build/linux/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
# Maintainer: Spacingbat3 (https://github.com/spacingbat3)
pkgname=electron-discord-webapp-git
pkgname=webcord-git
pkgver=v1.1.0_pre1.r67.cbfb1a7
pkgrel=1
pkgdesc="A Discord Web App based on the Electron engine."
arch=("x86_64" "i686" "aarch64" "armv7h")
pkgdesc="A Discord client based on the Electron engine."
arch=("any")

_march=${CARCH}
_repo="WebCord"
_author="SpacingBat3"

license=('MIT')
makedepends=('npm' 'git' 'jq')
depends=('electron')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}" "discord" "discord_arch_electron")
source=("git+https://github.com/${_author}/${pkgname%-git}.git")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/${_author}/${_repo}.git"
"${pkgname%-git}.desktop")
md5sums=('SKIP')


Expand All @@ -31,9 +32,6 @@ build() {
_terminal() {
printf "#!/bin/bash\nelectron /usr/lib/${pkgname%-git}.asar\nexit \$?">"$1"
}
_desktop() {
printf "[Desktop Entry]\nVersion=1.0\nTerminal=false\nType=Application\nName=Discord\nExec=/usr/bin/discord\nIcon=discord\nCategories=Network;Chat;VideoConference;WebApp;Electron\nComment=Your place to talk!\nComment[pl]=Twoje miejsce do rozmów!\nGenericName=Network Messenger\nGenericName[pl]=Kommunikator internetowy\nStartupNotify=true">"$1"
}
cd "${srcdir}/${pkgname%-git}"
[[ -f docs/COPYING ]] && mv docs/COPYING ../ && rm -R docs
[[ -f build ]] && rm -R build
Expand All @@ -47,7 +45,8 @@ package() {
cd "${srcdir}"
install -Dm755 "${srcdir}/${pkgname%-git}.asar" "${pkgdir}/usr/lib/${pkgname%-git}.asar"
install -Dm644 "${srcdir}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname%-git}/COPYING"
install -Dm644 "${srcdir}/${pkgname%-git}/icons/app.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/discord.png"
install -Dm644 "${srcdir}/${pkgname%-git}/icons/app.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/webcord.png"
install -Dm644 "${srcdir}/${pkgname%-git}/icons/extra/iconThemes/Papirus/webcord.png" "${pkgdir}/usr/share/icons/Papirus/128x128/apps/webcord.png"
install -Dm755 "${srcdir}/${pkgname%-git}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-git}.desktop"
install -Dm755 "${srcdir}/${pkgname%-git}.sh" "${pkgdir}/usr/bin/discord"
install -Dm755 "${srcdir}/${pkgname%-git}.sh" "${pkgdir}/usr/bin/${pkgname%-git}"
}
15 changes: 15 additions & 0 deletions build/linux/webcord.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=WebCord
GenericName=Instant Messenger
GenericName[pl]=Komunikator internetowy
Comment=Discord web app that uses the Electron API
Comment[pl]=Aplikacja internetowa Discorda wykorzystująca API Elektron'a
Exec=webcord
Icon=webcord
Categories=Network;Chat;InstantMessaging;
Keywords=Electron;Web;Talk;Chat;Message;Internet;Screen share;Meeting
Keywords[pl]=Electron;Sieć;Rozmowa;Czat;Wiadomość;Internet;Przesyłanie ekranu;Spotkanie
Terminal=false
StartupNotify=false
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
Electron Discord Web App – README.md (Markdown + HTML)
WebCord – README.md (Markdown + HTML)
-->
<h1><a href='https://discord.com'><img src='../icons/app.png' width='64px'></a> Electron Discord Web App </h1>
<h1><a href='https://discord.com'><img src='../icons/app.png' width='64px'></a> WebCord </h1>

[![MIT license](https://img.shields.io/badge/License-MIT-C23939.svg)](COPYING)
[![Electron](https://img.shields.io/badge/Made%20with-Electron-486F8F.svg)](https://www.electronjs.org/)
Expand Down
114 changes: 114 additions & 0 deletions extra/iconThemes/Papirus/webcord.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/app.icns
Binary file not shown.
Binary file modified icons/app.ico
Binary file not shown.
Binary file modified icons/app.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed icons/tray-small.png
Binary file not shown.
37 changes: 22 additions & 15 deletions package.json
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "electron-discord-webapp",
"productName": "Electron Discord Web App",
"version": "1.2.1",
"name": "webcord",
"productName": "WebCord",
"version": "1.3.0",
"description": "A Discord Web App made with the Electron API.",
"main": "src/js/main.js",
"scripts": {
Expand All @@ -10,17 +10,24 @@
"build": "tsc",
"start": "tsc && electron-forge start",
"start:fast": "electron-forge start",
"start:faster": "electron .",
"package": "tsc && electron-forge package",
"package:fast": "electron-forge package",
"make": "tsc && electron-forge make",
"make:fast": "electron-forge make",
"publish": "tsc && electron-forge publish",
"publish:fast": "electron-forge publish"
"publish:fast": "electron-forge publish",
"clean:linux": "rm src/js/*.js*"
},
"keywords": [
"discord",
"web app",
"electron"
"web",
"electron",
"arm",
"armv7l",
"aarch64",
"arm64",
"Instant Messaging"
],
"author": {
"name": "SpacingBat3",
Expand All @@ -30,12 +37,12 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/SpacingBat3/electron-discord-webapp"
"url": "git+https://github.com/SpacingBat3/WebCord"
},
"bugs": {
"url": "https://github.com/SpacingBat3/electron-discord-webapp/issues"
"url": "https://github.com/SpacingBat3/WebCord/issues"
},
"homepage": "https://github.com/SpacingBat3/electron-discord-webapp#readme",
"homepage": "https://github.com/SpacingBat3/WebCord#readme",
"devDependencies": {
"@electron-forge/cli": "^6.0.0-beta.54",
"@electron-forge/maker-deb": "^6.0.0-beta.54",
Expand All @@ -45,19 +52,19 @@
"@electron-forge/publisher-github": "^6.0.0-beta.54",
"@typescript-eslint/eslint-plugin": "^4.15.2",
"@typescript-eslint/parser": "^4.15.2",
"electron": "^12.0.1",
"electron": "^12.0.2",
"electron-forge-maker-appimage": "SpacingBat3/electron-forge-maker-appimage",
"eslint": "^7.21.0",
"eslint": "^7.23.0",
"eslint-import-resolver-typescript": "^2.4.0",
"eslint-plugin-import": "^2.22.1",
"tsc": "^1.20150623.0",
"typescript": "^4.2.2"
"typescript": "^4.2.3"
},
"dependencies": {
"deepmerge": "^4.2.2",
"electron-fetch": "^1.7.3",
"electron-json-config": "^1.5.3",
"electron-squirrel-startup": "^1.0.0"
"electron-json-config": "^2.0.0-beta",
"electron-squirrel-startup": "^1.0.0",
"source-map-support": "^0.5.19"
},
"config": {
"forge": "./src/js/configForge.js"
Expand Down

0 comments on commit 3222a06

Please sign in to comment.