diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 11bbda52..f359f24c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ on: jobs: linux: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 permissions: contents: write steps: @@ -34,7 +34,7 @@ jobs: - run: node scripts/release-body > release-body.txt - uses: ncipollo/release-action@v1 with: - artifacts: 'dist/plebchan*.AppImage,dist/plebchan-html*.zip' + artifacts: 'dist/plebchan-linux*.AppImage,dist/plebchan-html*.zip' token: ${{ secrets.GITHUB_TOKEN }} replacesArtifacts: true bodyFile: "release-body.txt" @@ -69,7 +69,7 @@ jobs: - run: node scripts/release-body > release-body.txt - uses: ncipollo/release-action@v1 with: - artifacts: 'dist/plebchan*.dmg' + artifacts: 'dist/plebchan-mac*.dmg' token: ${{ secrets.GITHUB_TOKEN }} replacesArtifacts: true bodyFile: "release-body.txt" @@ -88,7 +88,7 @@ jobs: - uses: actions/setup-node@v2 with: node-version: 18 - - run: yarn install --frozen-lockfile + - run: yarn install --frozen-lockfile --network-timeout 100000 --network-concurrency 1 - run: yarn build - run: yarn electron:build:windows - run: dir dist @@ -97,7 +97,7 @@ jobs: - run: node scripts/release-body > release-body.txt - uses: ncipollo/release-action@v1 with: - artifacts: 'dist/plebchan*.exe' + artifacts: 'dist/plebchan-windows*.exe' token: ${{ secrets.GITHUB_TOKEN }} replacesArtifacts: true bodyFile: "release-body.txt" @@ -142,14 +142,14 @@ jobs: # to create keystore: keytool -genkey -v -keystore plebbit.keystore -keyalg RSA -keysize 2048 -validity 10000 -alias release - run: cd android/app/build/outputs/apk/release && apksigner sign --ks ../../../../../plebbit.keystore --ks-pass pass:${{ secrets.PLEBBIT_REACT_KEYSTORE_PASSWORD }} --ks-key-alias release --out app-release-signed.apk app-release-unsigned-zip.apk # move apk to dist folder - - run: mkdir -p dist && mv android/app/build/outputs/apk/release/app-release-signed.apk dist/plebchan-$(node -e "console.log(require('./package.json').version)").apk + - run: mkdir -p dist && mv android/app/build/outputs/apk/release/app-release-signed.apk dist/plebchan-android-$(node -e "console.log(require('./package.json').version)").apk - run: ls dist # publish version release - run: node scripts/release-body > release-body.txt - uses: ncipollo/release-action@v1 with: - artifacts: 'dist/plebchan*.apk' + artifacts: 'dist/plebchan-android*.apk' token: ${{ secrets.GITHUB_TOKEN }} replacesArtifacts: true bodyFile: "release-body.txt" diff --git a/README.md b/README.md index 2f28c1af..ef6f6afb 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,18 @@ _Telegram group for this repo https://t.me/plebchanreact_ -_Web client https://plebchan.eth.limo_ - # Plebchan Plebchan is a serverless, adminless, decentralized 4chan alternative where any pleb can create and own unlimited boards. All data comes from the Plebbit protocol, it's all text including links from which media is embedded, shared peer-to-peer. Users do not need to register an account before participating in the community. -### How to create a board -In the plebbit protocol, a plebchan board is called a _subplebbit_. To run a subplebbit, you can currently choose between two options: +- web version: https://plebchan.app, also available using Brave/IPFS Companion on https://plebchan.eth + +### Downloads +- desktop version (full p2p plebbit node, seeds automatically): available for Mac/Windows/Linux, [download link in the release page](https://github.com/plebbit/plebchan/releases/latest) +- mobile version: available for Android, [download link in the release page](https://github.com/plebbit/plebchan/releases/latest) + +## How to create a board +In the plebbit protocol, a plebchan board is called a _subplebbit_. To run a subplebbit, you can choose between two options: 1. If you prefer to use a **GUI**, download the desktop version of the Seedit client, available for Windows, MacOS and Linux: [latest release](https://github.com/plebbit/seedit/releases/latest). Create a subplebbit using using the familiar old.reddit-like UI, and modify its settings to your liking. The app runs an IPFS node, meaning you have to keep it running to have your board online. 2. If you prefer to use a **command line interface**, install plebbit-cli, available for Windows, MacOS and Linux: [latest release](https://github.com/plebbit/plebbit-cli/releases/latest). Follow the instructions in the readme of the repo. When running the daemon for the first time, it will output WebUI links you can use to manage your subplebbit with the ease of the GUI. diff --git a/electron/main.js b/electron/main.js index 60b8359f..a90c5d34 100644 --- a/electron/main.js +++ b/electron/main.js @@ -8,7 +8,7 @@ import startIpfs from './start-ipfs.js'; import './start-plebbit-rpc.js'; import { URL, fileURLToPath } from 'node:url'; import contextMenu from 'electron-context-menu'; -import packageJson from '../package.json' assert { type: 'json' }; +import packageJson from '../package.json' with { type: 'json' }; const dirname = path.join(path.dirname(fileURLToPath(import.meta.url))); let startIpfsError; diff --git a/electron/start-plebbit-rpc.js b/electron/start-plebbit-rpc.js index f34199ef..a0dcc5ae 100644 --- a/electron/start-plebbit-rpc.js +++ b/electron/start-plebbit-rpc.js @@ -2,7 +2,7 @@ import tcpPortUsed from 'tcp-port-used'; import EnvPaths from 'env-paths'; import { randomBytes } from 'crypto'; import fs from 'fs-extra'; -import PlebbitRpc from '@plebbit/plebbit-js/dist/node/rpc/src/index.js'; +import PlebbitRpc from '@plebbit/plebbit-js/rpc'; import path from 'path'; import { fileURLToPath } from 'url'; import isDev from 'electron-is-dev'; @@ -14,7 +14,7 @@ const port = 9138; const defaultPlebbitOptions = { // find the user's OS data path dataPath: !isDev ? envPaths.data : path.join(dirname, '..', '.plebbit'), - ipfsHttpClientsOptions: ['http://localhost:50019/api/v0'], + kuboRpcClientsOptions: [{ url: 'http://localhost:50019/api/v0' }], httpRoutersOptions: ['https://routing.lol', 'https://peers.pleb.bot', 'https://peers.plebpubsub.xyz', 'https://peers.forumindex.com'], }; diff --git a/index.html b/index.html index 15ca56a2..30a474de 100644 --- a/index.html +++ b/index.html @@ -8,36 +8,12 @@ - - -