Skip to content

Commit

Permalink
fixes everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
hellno committed Aug 17, 2023
1 parent 794ed16 commit d43bb63
Show file tree
Hide file tree
Showing 32 changed files with 968 additions and 636 deletions.
35 changes: 26 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches: [ main ]
pull_request:
branches: [ main ]
release:
types: [published] # has GITHUB_REF as refs/tags/<tag_name>

jobs:
build:
Expand Down Expand Up @@ -43,20 +45,35 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get upgrade -y --no-install-recommends webkit2gtk-4.0
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: Install Node.js dependencies
run: yarn install

# - name: Download Rust dependencies
# run: cargo fetch --manifest-path=src-tauri/Cargo.toml

- name: Build application
run: yarn build

- name: Upload release artifacts
- name: Build the app
if: startsWith(github.ref, 'refs/tags/v')
uses: actions/upload-artifact@v3
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE }}
# APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
# APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
# APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
# APPLE_ID: ${{ secrets.APPLE_ID }}
# APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
with:
name: release-${{ matrix.os }}
path: |
src-tauri/target/release/**/*
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: 'herocast v__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false

# - name: Upload release artifacts
# if: startsWith(github.ref, 'refs/tags/v')
# uses: actions/upload-artifact@v3
# with:
# name: release-${{ matrix.os }}
# path: |
# src-tauri/target/release/**/*
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,10 @@ https://github.com/michyaraque/tauri-boilerplate
```bash
$ yarn dev
```

# 🚀 Release

```
export TAURI_PRIVATE_KEY=xyz
yarn run tauri rls:mac-intel
```
16 changes: 8 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
<html lang="en">

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="index.html NAME" content="index.html CONTENT" />
<title>herocast</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="index.html NAME" content="index.html CONTENT" />
<title>herocast</title>
</head>

<body>
<!-- <noscript>You need to enable JavaScript to run this app.</noscript> -->
<div id="root"></div>
<script type="module" src="/src/App.tsx"></script>
<body style="background-color: #1f2937;">
<!-- <noscript>You need to enable JavaScript to run this app.</noscript> -->
<div id="root"></div>
<script type="module" src="/src/App.tsx"></script>
</body>

</html>
30 changes: 16 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"name": "tauri-boilerplate",
"version": "0.0.1",
"name": "herocast",
"version": "0.1",
"license": "",
"private": true,
"scripts": {
"dev": "tauri dev",
"start": "vite",
"rls": "tauri build",
"rls:debug": "tauri build --debug",
"rls:mac": "tauri build --target universal-apple-darwin",
"rls:mac-universal": "tauri build --target universal-apple-darwin",
"rls:mac-apple": "tauri build --target aarch64-apple-darwin",
"rls:mac-intel": "tauri build --target x86_64-apple-darwin",
"build": "cross-env INLINE_RUNTIME_CHUNK=true NODE_OPTIONS=--max-old-space-size=16192 yarn vite build",
"preview": "vite preview",
"serve": "serve -s build",
Expand All @@ -22,9 +24,9 @@
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
],
"development": [
"last 1 chrome version",
Expand All @@ -34,7 +36,7 @@
},
"dependencies": {
"@aptabase/tauri": "^0.4.1",
"@chakra-ui/icons": "^2.0.9",
"@chakra-ui/icons": "^2.1.0",
"@chakra-ui/react": "^2.8.0",
"@chakra-ui/system": "^2.6.0",
"@emotion/react": "11",
Expand All @@ -46,9 +48,9 @@
"@supabase/auth-ui-react": "^0.4.2",
"@supabase/supabase-js": "^2.32.0",
"@tailwindcss/forms": "^0.5.4",
"@tauri-apps/api": "^1.0.1",
"@tauri-apps/api": "^1.4",
"command-score": "^0.1.2",
"esbuild": "^0.18.19",
"esbuild": "^0.19.2",
"framer-motion": "6",
"google-protobuf": "^3.21.2",
"javascript-time-ago": "^2.5.9",
Expand All @@ -62,7 +64,7 @@
"react-icons": "^4.4.0",
"react-qr-code": "^2.0.11",
"react-router-dom": "^6.4.5",
"rollup": "^2.0.0",
"rollup": "^3.28.0",
"tailwindcss": "^3.3.3",
"tauri-plugin-sql-api": "https://github.com/tauri-apps/tauri-plugin-sql#v1",
"tauri-plugin-store-api": "https://github.com/tauri-apps/tauri-plugin-store#v1",
Expand All @@ -72,20 +74,20 @@
},
"devDependencies": {
"@esbuild-plugins/node-globals-polyfill": "^0.1.1",
"@rollup/plugin-inject": "^4.0.4",
"@tauri-apps/cli": "^1.0.0-rc.8",
"@rollup/plugin-inject": "^5.0.3",
"@tauri-apps/cli": "^1.4",
"@types/lodash.isempty": "^4.4.7",
"@types/lodash.isequal": "^4.5.6",
"@types/lodash.uniqby": "^4.7.7",
"@types/node": "^18.7.15",
"@types/react-dom": "^18.0.9",
"@vitejs/plugin-react": "^1.0.7",
"@vitejs/plugin-react": "^1",
"autoprefixer": "^10.4.14",
"buffer": "^6.0.3",
"cross-env": "^7.0.3",
"eslint": "^8.46.0",
"postcss": "^8.4.27",
"rollup-plugin-polyfill-node": "^0.10.2",
"rollup-plugin-polyfill-node": "^0.12.0",
"rollup-plugin-visualizer": "^5.6.0",
"vite": "^2.9.0"
}
Expand Down
25 changes: 25 additions & 0 deletions splashscreen.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<title>herocast</title>
</head>
<body>
<div class="select-none cursor-progress min-h-screen bg-gray-800 mx-auto max-w-7xl px-6 pt-10">
<div class="mx-auto max-w-2xl flex-shrink-0 lg:mx-0 lg:max-w-xl lg:pt-8">
<h1 class="hoveranimate-pulse mt-6 text-6xl font-bold tracking-tight text-white">
herocast
</h1>
<p class="text-lg leading-8 text-gray-200">loading the fastest farcaster client for you</p>
<div class="mt-6 inline-flex space-x-6 cursor-not-allowed">
<span class="rounded-full bg-teal-500/50 px-3 py-1 text-sm font-semibold leading-6 text-teal-300 ring-1 ring-inset ring-teal-500/60">
yum yum farcaster so fast
</span>
</div>
</div>
</div>
</body>
</html>
Loading

0 comments on commit d43bb63

Please sign in to comment.