Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get logo into the repo (with embedded font) #5

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 105 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
name: Build

on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:

createrelease:
name: Create Release
runs-on: [ubuntu-latest]
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Output Release URL File
run: echo "${{ steps.create_release.outputs.upload_url }}" > release_url.txt
- name: Save Release URL File for publish
uses: actions/upload-artifact@v1
with:
name: release_url
path: release_url.txt

build-client:
name: Build client
needs: createrelease
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-latest
TARGET: macos
CMD_BUILD: >
pyinstaller client.py &&
cd dist/ &&
zip -r9 hermes hermes.app/
OUT_FILE_NAME: hermes.zip
ASSET_MIME: application/zip
- os: windows-latest
TARGET: windows
CMD_BUILD: pyinstaller client.py
OUT_FILE_NAME: hermes.exe
ASSET_MIME: application/vnd.microsoft.portable-executable

build-server:
name: Build server
needs: createrelease
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-latest
TARGET: macos
CMD_BUILD: >
pyinstaller server.py &&
cd dist/ &&
zip -r9 hermes hermes-server.app/
OUT_FILE_NAME: hermes.zip
ASSET_MIME: application/zip
- os: windows-latest
TARGET: windows
CMD_BUILD: pyinstaller server.py
OUT_FILE_NAME: hermes-server.exe
ASSET_MIME: application/vnd.microsoft.portable-executable

steps:
- uses: actions/checkout@v1
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# pip install -r requirements.txt
- name: Build with pyinstaller for ${{matrix.TARGET}}
run: ${{matrix.CMD_BUILD}}
- name: Load Release URL File from release job
uses: actions/download-artifact@v1
with:
name: release_url
- name: Get Release File Name & Upload URL
id: get_release_info
shell: bash
run: |
value=`cat release_url/release_url.txt`
echo ::set-output name=upload_url::$value
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release_info.outputs.upload_url }}
asset_path: ./dist/${{ matrix.OUT_FILE_NAME}}
asset_name: ${{ matrix.OUT_FILE_NAME}}
asset_content_type: ${{ matrix.ASSET_MIME}}
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# hermes
# ![image](./logo.svg)

A decentralized chat service

*The website is on a different repo - click [here](https://github.com/uimaxbai/decentralized-chat-web/) to see it*

<h1> Coming soon.... </h1>

## Roadmap
Expand All @@ -20,4 +22,4 @@ D-->E;
E-->F;
F-->A;
F-->B;
```
```
9 changes: 9 additions & 0 deletions client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@


def Main():
print("""
,, ,,
,,,, %, ,,, ,,, ,,,,,,,,, #,,,,,,,, ,,,, ,,, ,,,,,,,,,, ,,,,,,,,
,,,,,((,,,,,,, ,,, ///// ,,, ,,, ,,, #,,, ,,,, ,,,,, ,,,,, ,,,* ,,,
, ,,,, &//* %/// // ,,,,,,,,,,,, ,,,,,,,, #,,, %,,, ,,,,,, ,,,,,, ,,,,,,,,, ,,,,,%
,, /// //////////// ,,,######,,, ,,, #,,,,,,,, (,,% ,,,,,, ,,, ,,,* *,,,,,
,,,, ,,, ,,, ,,, ,,, #,,, ,,,, ,,, ,,,, ,,, ,,,* ,,,
,,, ,,, , ,,, ,,, ,,,,,,,,,, #,,, ,,,, ,,, ,,, ,,,,,,,,,, ,,,,,,,,,
,,,,,,,,,, , ,, """)
# local host IP '127.0.0.1'
host = '127.0.0.1'

Expand Down
24 changes: 24 additions & 0 deletions logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion server.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import socket,sys
# hello there

from threading import Thread
connected=set()
Expand Down Expand Up @@ -44,4 +45,4 @@ def main():
thread.join()

if __name__ == '__main__':
main()
main()