Skip to content
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
37 changes: 20 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'publish'
name: "publish"

on:
workflow_dispatch: {}
Expand All @@ -18,16 +18,16 @@ jobs:
fail-fast: false
matrix:
include:
- platform: 'macos-latest' # for Arm based macs (M1 and above).
args: '--target aarch64-apple-darwin'
- platform: 'macos-latest' # for Intel based macs.
args: '--target x86_64-apple-darwin'
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
args: ''
- platform: 'ubuntu-22.04-arm'
args: '--target aarch64-unknown-linux-gnu'
- platform: 'windows-latest'
args: ''
- platform: "macos-latest" # for Arm based macs (M1 and above).
args: "--target aarch64-apple-darwin"
- platform: "macos-latest" # for Intel based macs.
args: "--target x86_64-apple-darwin"
- platform: "ubuntu-22.04" # for Tauri v1 you could replace this with ubuntu-20.04.
args: ""
- platform: "ubuntu-22.04-arm"
args: "--target aarch64-unknown-linux-gnu"
- platform: "windows-latest"
args: ""

runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -36,10 +36,14 @@ jobs:
submodules: true
token: ${{ secrets.GITHUB_TOKEN }}

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: "pnpm"

- name: install Rust nightly
uses: dtolnay/rust-toolchain@nightly
Expand All @@ -54,7 +58,6 @@ jobs:
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.


- name: Import Apple Developer Certificate
if: matrix.platform == 'macos-latest'
env:
Expand All @@ -67,7 +70,7 @@ jobs:
security default-keychain -s build.keychain
security unlock-keychain -p "$KEYCHAIN_PASSWORD" build.keychain
security set-keychain-settings -t 3600 -u build.keychain

curl https://droposs.org/drop.crt --output drop.pem
sudo security authorizationdb write com.apple.trust-settings.admin allow
sudo security add-trusted-cert -d -r trustRoot -k build.keychain -p codeSign -u -1 drop.pem
Expand All @@ -86,7 +89,7 @@ jobs:
echo "Certificate imported. Using identity: $CERT_ID"

- name: install frontend dependencies
run: yarn install # change this to npm, pnpm or bun depending on which one you use.
run: pnpm install

- uses: tauri-apps/tauri-action@v0
env:
Expand All @@ -97,8 +100,8 @@ jobs:
NO_STRIP: true
with:
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
releaseName: 'Auto-release v__VERSION__'
releaseBody: 'See the assets to download this version and install. This release was created automatically.'
releaseName: "Auto-release v__VERSION__"
releaseBody: "See the assets to download this version and install. This release was created automatically."
releaseDraft: false
prerelease: true
args: ${{ matrix.args }}
args: ${{ matrix.args }}
4 changes: 3 additions & 1 deletion DEBUG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# How to create Flamegraph

Run this in `src-tauri`:

```
WEBKIT_DISABLE_DMABUF_RENDERER=1 CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph --release
```

You can leave out `WEBKIT_DISABLE_DMABUF_RENDERER=1` if you're not on NVIDIA/Linux

And then run this in the root dir:

```
yarn dev --port 1432
pnpm dev --port 1432
```

And then do what you want, and it'll create the flamegraph for you
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
Drop app is the companion app for [Drop](https://github.com/Drop-OSS/drop). It uses a Tauri base with Nuxt 3 + TailwindCSS on top of it, so we can re-use components from the web UI.

## Running
Before setting up the drop app, be sure that you have a server set up.

Before setting up the drop app, be sure that you have a server set up.
The instructions for this can be found on the [Drop Docs](https://docs.droposs.org/docs/guides/quickstart)

## Current features

Currently supported are the following features:

- Signin (with custom server)
- Database registering & recovery
- Dynamic library fetching from server
Expand All @@ -17,13 +20,14 @@ Currently supported are the following features:

## Development

Install dependencies with `yarn`
Install dependencies with `pnpm`

Run the app in development with `yarn tauri dev`. NVIDIA users on Linux, use shell script `./nvidia-prop-dev.sh`
Run the app in development with `pnpm tauri dev`. NVIDIA users on Linux, use shell script `./nvidia-prop-dev.sh`

To manually specify the logging level, add the environment variable `RUST_LOG=[debug, info, warn, error]` to `yarn tauri dev`:
To manually specify the logging level, add the environment variable `RUST_LOG=[debug, info, warn, error]` to `pnpm tauri dev`:

e.g. `RUST_LOG=debug yarn tauri dev`
e.g. `RUST_LOG=debug pnpm tauri dev`

## Contributing
Check the original [Drop repo](https://github.com/Drop-OSS/drop/blob/main/CONTRIBUTING.md) for contributing guidelines.

Check the original [Drop repo](https://github.com/Drop-OSS/drop/blob/main/CONTRIBUTING.md) for contributing guidelines.
7 changes: 2 additions & 5 deletions build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@ for (const view of views) {
const loggerChild = logger.child({});
process.chdir(`./${view}`);

loggerChild.info(`Install deps for "${view}"`);
await spawn("yarn");

loggerChild.info(`Building "${view}"`);
await spawn("yarn build", {
await spawn("pnpm build", {
env: { ...process.env, NUXT_APP_BASE_URL: `/${view}/` },
});

Expand All @@ -45,4 +42,4 @@ for (const view of views) {
fs.cpSync(`./${view}/.output/public`, `${OUTPUT}/${view}`, {
recursive: true,
});
}
}
5 changes: 2 additions & 3 deletions main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,5 @@
"tailwindcss": "^3.4.13",
"typescript": "^5.8.3",
"vue-tsc": "^2.2.10"
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
}
}
Loading