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

Added Arm Support. I think...? #100

Open
ImPapaGhost opened this issue Dec 22, 2023 · 2 comments
Open

Added Arm Support. I think...? #100

ImPapaGhost opened this issue Dec 22, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@ImPapaGhost
Copy link
Contributor

ImPapaGhost commented Dec 22, 2023

Here is the Package.json file that builds for linux arm like raspberry pi 4. After you add the arm scripts just run npm run linux-arm64 if your running arm 64

{
"name": "alpaca-electron",
"productName": "Alpaca Electron",
"description": "The most user friendly way to interact with Alpaca",
"version": "1.0.6",
"author": "Pi",
"license": "MIT",
"main": "index.js",
"icon": "icon/win/icon.ico",
"scripts": {
"test": "echo "Error: no test specified" && exit 1",
"start": "electron .",
"make-win": "npx electron-packager . --overwrite --platform=win32 --arch=x64 --icon=icon/win/icon.ico --prune=true --electron-version=13.6.9 --app-copyright="Pi" --out=release-builds --version-string.CompanyName=Pi",
"pack-win": "npx electron-builder --win --config --publish=never --prepackaged "release-builds/Alpaca Electron-win32-x64"",
"win": "rmdir /s /q release-builds dist && npm run make-win && npm run pack-win",
"make-mac-x64": "npx electron-packager . --overwrite --platform=darwin --arch=x64 --icon=icon/mac/icon.icns --prune=true --electron-version=13.6.9 --app-copyright="Pi" --out=./release-builds --version-string.CompanyName=Pi",
"make-mac-arm64": "npx electron-packager . --overwrite --platform=darwin --arch=arm64 --icon=icon/mac/icon.icns --prune=true --electron-version=13.6.9 --app-copyright="Pi" --out=./release-builds --version-string.CompanyName=Pi",
"pack-mac-x64": "electron-installer-dmg "release-builds/Alpaca Electron-darwin-x64/Alpaca Electron.app" "Alpaca Electron" --out=release-builds/dmg/x64 --icon=icon/mac/icon.icns --icon-size=128 --title="Alpaca Electron" --overwrite",
"pack-mac-arm64": "electron-installer-dmg "release-builds/Alpaca Electron-darwin-arm64/Alpaca Electron.app" "Alpaca Electron" --out=release-builds/dmg/arm64 --icon=icon/mac/icon.icns --icon-size=128 --title="Alpaca Electron" --overwrite",
"mac-x64": "npm run make-mac-x64 && npm run pack-mac-x64",
"mac-arm64": "npm run make-mac-arm64 && npm run pack-mac-arm64",
"rebuild": ".\node_modules\.bin\electron-rebuild",
"rebuild-linux": "npx --openssl_fips='' electron-rebuild",
"make-linux-x64": "npx electron-packager . --overwrite --platform=linux --arch=x64 --icon=icon/png/128x128.png --prune=true --electron-version=13.6.9 --app-copyright='Pi' --out=./release-builds --version-string.CompanyName=Pi",
"pack-linux-x64": "tar czf release-builds/Alpaca-Electron-linux-x64-1.0.6.tar.gz "release-builds/Alpaca Electron-linux-x64"",
"linux-x64": "npm run rebuild-linux && npm run make-linux-x64 && npm run pack-linux-x64",
"make-linux-arm64": "npx electron-packager . --overwrite --platform=linux --arch=arm64 --icon=icon/png/128x128.png --prune=true --electron-version=13.6.9 --app-copyright='Pi' --out=./release-builds --version-string.CompanyName=Pi",
"pack-linux-arm64": "tar czf release-builds/Alpaca-Electron-linux-arm64-1.0.6.tar.gz "release-builds/Alpaca Electron-linux-arm64"",
"linux-arm64": "npm run rebuild-linux && npm run make-linux-arm64 && npm run pack-linux-arm64"
},
"dependencies": {
"@electron/remote": "^2.0.9",
"@npmcli/fs": "^3.1.0",
"duck-duck-scrape": "^2.2.4",
"electron-store": "^8.1.0",
"express": "^4.18.2",
"node-pty-prebuilt-multiarch": "^0.10.1-pre.5",
"os-utils": "^0.0.14",
"path": "^0.12.7"
},
"devDependencies": {
"@electron/rebuild": "^3.2.10",
"electron": "^13.6.9",
"electron-builder": "^23.6.0",
"electron-packager": "^17.1.1"
}
}

@ImPapaGhost ImPapaGhost added the enhancement New feature or request label Dec 22, 2023
@ItsPi3141
Copy link
Owner

Could you open a PR for this?

@ImPapaGhost
Copy link
Contributor Author

Just sent a pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants