Open binarydepth opened 6 months ago
cd "$srcdir/$pkgname-$pkgver/main"
yarn build
didn't install deps here too?
Ok this build() works as per instruction but the Fuse image is not correct. Can you provide instructions for package()
build() {
cd "$srcdir/$pkgname-$pkgver" # Change into the source directory
# Install missing type definitions
npm install --no-optional --no-audit --save-dev @types/node
npm install --no-optional --no-audit --save-dev @types/electron
npm install --no-optional --no-audit --save-dev uiohook-napi
# Install dependencies
npm install --no-optional --no-audit --no-fund
cd "$srcdir/$pkgname-$pkgver/renderer"
yarn install
yarn make-index-files
yarn build
cd "$srcdir/$pkgname-$pkgver/main"
yarn install
yarn build
# Sign with a distribution certificate.
# We want to sign with a distribution certificate to ensure other users can
# install without errors
CSC_NAME="Certificate name in Keychain" yarn package
}
sry, I have no clue how packaging in arch works. any existing packages have no connection with me
This shell script works and you just have to inform about build packages tar typescript'yarn nodejs npm and electron-builder (from AUR in my case) and that the AppImage is on awakened-poe-trade/awakened-poe-trade-3.23.10003/main/dist/ (I changed it to put the AppImage on the root folder)
And a shell script makes more sense than using AUR
#!/bin/sh
VERSION=3.23.10003
wget https://github.com/SnosMe/awakened-poe-trade/archive/refs/tags/v$VERSION.tar.gz && tar -xvf v$VERSION.tar.gz && cd awakened-poe-trade-$VERSION
npm ci --no-optional --no-audit --save-dev @types/node
npm ci --no-optional --no-audit --save-dev @types/electron
npm ci --no-optional --no-audit --save-dev @types/uiohook-nap
npm ci --no-optional --no-audit
cd renderer
yarn install
yarn make-index-files
yarn build
cd ../main
yarn install
yarn build
# We want to sign with a distribution certificate to ensure other users can
# install without errors
CSC_NAME="Certificate name in Keychain" yarn package
cd dist
mv "Awakened PoE Trade-3.23.10003.AppImage" ../../..
@binarydepth
I'm maintaining the awakened-poe-trade-git
AUR package, if you'd like to take a look at my PKGBUILD.
Link to AUR
It will always build from the latest commit on the master
branch.
I prefer to build from source, and trying to make the PKGBUILD. What is missing/wrong?