mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
feat: rename plebchan to 5chan
This commit is contained in:
+10
-10
@@ -16,33 +16,33 @@ if [ -z "${DEPLOY_USER+xxx}" ]; then echo "DEPLOY_USER not set" && exit; fi
|
||||
if [ -z "${DEPLOY_PASSWORD+xxx}" ]; then echo "DEPLOY_PASSWORD not set" && exit; fi
|
||||
|
||||
# save version
|
||||
PLEBCHAN_VERSION=$(node -e "console.log(require('../package.json').version)")
|
||||
PLEBCHAN_HTML_NAME="plebchan-html-$PLEBCHAN_VERSION"
|
||||
5chan_VERSION=$(node -e "console.log(require('../package.json').version)")
|
||||
5chan_HTML_NAME="5chan-html-$5chan_VERSION"
|
||||
|
||||
SCRIPT="
|
||||
# download html
|
||||
cd ~
|
||||
rm $PLEBCHAN_HTML_NAME.zip
|
||||
rm -fr $PLEBCHAN_HTML_NAME
|
||||
wget https://github.com/plebbit/plebchan/releases/download/v$PLEBCHAN_VERSION/$PLEBCHAN_HTML_NAME.zip || exit
|
||||
rm $5chan_HTML_NAME.zip
|
||||
rm -fr $5chan_HTML_NAME
|
||||
wget https://github.com/plebbit/5chan/releases/download/v$5chan_VERSION/$5chan_HTML_NAME.zip || exit
|
||||
|
||||
# extract html
|
||||
unzip $PLEBCHAN_HTML_NAME.zip || exit
|
||||
rm $PLEBCHAN_HTML_NAME.zip || exit
|
||||
unzip $5chan_HTML_NAME.zip || exit
|
||||
rm $5chan_HTML_NAME.zip || exit
|
||||
|
||||
# add to ipfs
|
||||
CID=\`ipfs add --recursive --pin --quieter $PLEBCHAN_HTML_NAME | tail -n 1\`
|
||||
CID=\`ipfs add --recursive --pin --quieter $5chan_HTML_NAME | tail -n 1\`
|
||||
ipfs pin add --recursive \"\$CID\"
|
||||
|
||||
# start ipfs daemon if not started
|
||||
ipfs init
|
||||
nohup ipfs daemon &
|
||||
|
||||
# the CID of plebchan html, add this CID to ENS
|
||||
# the CID of 5chan html, add this CID to ENS
|
||||
sleep 3
|
||||
echo \"\"
|
||||
CID=\`ipfs cid base32 \$CID\`
|
||||
echo $PLEBCHAN_HTML_NAME \"CID: \$CID\"
|
||||
echo $5chan_HTML_NAME \"CID: \$CID\"
|
||||
echo \"\"
|
||||
"
|
||||
|
||||
|
||||
@@ -19,15 +19,15 @@ releaseChangelog = releaseChangelog.trim().replace(/\n\n+/g, '\n\n')
|
||||
|
||||
const releaseBody = `This version fixes a bug that prevented publishing.
|
||||
|
||||
- Web app: https://plebchan.app
|
||||
- Decentralized web app: https://plebchan.eth (only works on [Brave Browser](https://brave.com/) or via [IPFS Companion](https://docs.ipfs.tech/install/ipfs-companion/#prerequisites))
|
||||
- Web app: https://5chan.app
|
||||
- Decentralized web app: https://5chan.eth (only works on [Brave Browser](https://brave.com/) or via [IPFS Companion](https://docs.ipfs.tech/install/ipfs-companion/#prerequisites))
|
||||
|
||||
## Downloads
|
||||
|
||||
- Android app: [Download APK](https://github.com/plebbit/plebchan/releases/download/v${version}/plebchan-${version}.apk)
|
||||
- Linux app: [Download AppImage](https://github.com/plebbit/plebchan/releases/download/v${version}/plebchan-${version}.AppImage)
|
||||
- macOS app: [Download DMG](https://github.com/plebbit/plebchan/releases/download/v${version}/plebchan-${version}.dmg)
|
||||
- Windows app: [Download EXE](https://github.com/plebbit/plebchan/releases/download/v${version}/plebchan.Setup.${version}.exe)
|
||||
- Android app: [Download APK](https://github.com/plebbit/5chan/releases/download/v${version}/5chan-${version}.apk)
|
||||
- Linux app: [Download AppImage](https://github.com/plebbit/5chan/releases/download/v${version}/5chan-${version}.AppImage)
|
||||
- macOS app: [Download DMG](https://github.com/plebbit/5chan/releases/download/v${version}/5chan-${version}.dmg)
|
||||
- Windows app: [Download EXE](https://github.com/plebbit/5chan/releases/download/v${version}/5chan.Setup.${version}.exe)
|
||||
|
||||
${releaseChangelog}`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user