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

Bug fix and various enhancement #11

Merged
merged 26 commits into from
Jul 17, 2022
Merged
Show file tree
Hide file tree
Changes from 15 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
60 changes: 60 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Build

env:
CARGO_TERM_COLOR: always

on: [push]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy

- name: Setup Node.js
uses: actions/setup-node@v3.2.0
with:
node-version: '16.x'

- name: install dependencies (ubuntu only)
# if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf libdbus-1-dev pkg-config

- name: Fetch Node.js Dependencies
run: yarn

- name: Build Release Version
run: yarn tauri build

- name: Upload Appimage build
uses: actions/upload-artifact@v3.1.0
with:
name: ark-shelf-desktop.AppImage
path: ./target/release/bundle/appimage/ark-shelf-desktop_*_amd64.AppImage

- name: Upload .deb build
uses: actions/upload-artifact@v3.1.0
with:
name: ark-shelf-desktop.deb
path: ./target/release/bundle/deb/ark-shelf-desktop_*_amd64.deb

- name: Upload binary build
uses: actions/upload-artifact@v3.1.0
with:
name: ark-shelf-desktop
path: ./target/release/ark-shelf-desktop
35 changes: 35 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
target
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
Loading