Skip to content

Commit

Permalink
Merge pull request #1 from p2panda/taurify
Browse files Browse the repository at this point in the history
Taurify: wrap in Tauri application
  • Loading branch information
adzialocha authored May 22, 2024
2 parents 4aa7278 + 5f8489a commit 981a0e0
Show file tree
Hide file tree
Showing 34 changed files with 8,298 additions and 0 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Build

on: push

jobs:
release:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: 'macos-latest'
args: '--target aarch64-apple-darwin'
- platform: 'macos-latest'
args: '--target x86_64-apple-darwin'
- platform: 'ubuntu-20.04'
args: ''
- platform: 'windows-latest'
args: ''

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4

- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20

- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}

- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: install frontend dependencies
run: npm install

- name: edit config.toml file
run: sed -i'.bak' -e 's/# DIRECT_NODE_ADDRESSES/${{ secrets.DIRECT_NODE_ADDRESSES }}/' src-tauri/resources/config.toml

- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
releaseName: "App v__VERSION__"
releaseBody: "See the assets to download this version and install."
releaseDraft: true
prerelease: false
args: ${{ matrix.args }}
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Makeshift organisation tool for the p4p unconference 28.-30.07.23 in offline, Be

## Development

### Browser

With a local `aquadoggo` node running execute the following commands:

```bash
# Install NodeJS dependencies
npm install
Expand All @@ -15,6 +19,21 @@ npm start
npm run build
```

### Tauri

The tauri app comes bundled with it's own node, just run the following commands:

```bash
# Install NodeJS dependencies
npm install

# Start the tauri app and front-end server in development mode
npm run tauri dev

# Build for production
npm run tauri build
```

## License

`UNLICENSE`
277 changes: 277 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 981a0e0

Please sign in to comment.