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

Release #605

Merged
merged 3 commits into from
Sep 13, 2024
Merged
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
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,12 @@ jobs:
sudo apt update
sudo apt install libwebkit2gtk-4.1-dev build-essential curl wget file libssl-dev libayatana-appindicator3-dev librsvg2-dev

- name: Build ahqstore-types locally
run: |
npm i -g wasm-pack
wasm-pack build --release -- --features js
working-directory: src-ahqstore-types

- name: install Vite dependencies and Build React App
run: pnpm install; pnpm build
env:
Expand All @@ -257,7 +263,6 @@ jobs:
asset_path: ./src-service/target/release/ahqstore_service.exe
asset_name: ahqstore_service_${{ matrix.arch }}.exe
asset_content_type: application/vnd.microsoft.portable-executable


- name: Upload Service (Linux)
if: matrix.os == 'ubuntu-latest'
Expand Down
14 changes: 11 additions & 3 deletions latest.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
Welcome to the next update Release Candidate of AHQ Store
The v2.0.0 stable release of AHQ Store

## Changes 📈
- Remove requirement of AHQ Store Account
## Changes 🎉
- Migrate from `server` to `no-server` 💿
- Stabilized ahqstore-types v3
- Update to Tauri v2
- Migration from `vite` to `rsbuild`

## Additions 🎉
- Arm64 Support 💻
- Context Menu 📃
- Performance Improvements ✈️
5 changes: 4 additions & 1 deletion src/app/resources/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ export async function get_devs_apps(devId: string) {
method: "GET",
});

const apps: string[] = ok ? data.split("\n") : [];
console.log(ok, data);
let apps: string[] = ok ? data.split("\n") : [];

apps = apps.filter((f) => f.trim() != "");

return apps;
}
Expand Down
20 changes: 20 additions & 0 deletions src/auth/hash.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { fetchAuthor } from "@/app/resources/api/fetchApps";
import { get_sha } from "@/app/resources/core";
import { invoke } from "@tauri-apps/api/core";

export async function generateGHUserHash(username: string): Promise<string> {
await get_sha();
if (username == "ahqsoftwares") return "1";

const hash = await invoke<string>("hash_username", { username });

console.log("Hash: ", hash);
return hash;
}

export async function verifyDevExists(hash: string) {
const resp = await fetchAuthor(hash).catch(() => undefined);

console.log("Resp: ", resp, resp != undefined);
return resp != undefined;
}
Loading