Skip to content

Commit

Permalink
windows packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
rllola committed Mar 31, 2024
1 parent c46d452 commit 0a155c9
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 42 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: "Build App"

# on:
# push:
# tags:
# - '*'

on:
push:
tags:
- '*'

jobs:
build:
Expand All @@ -13,10 +16,12 @@ jobs:
matrix:
include:
- os: ubuntu-20.04
- os: windows-latest
runs-on: ${{ matrix.os }}

steps:
- name: Install linux dependencies
if: matrix.os =='ubuntu-20.04'
run: sudo apt-get install fuse libfuse2 libopengl0 libegl1 libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -27,6 +32,7 @@ jobs:
# run: |
# npm version --no-git-tag-version from-git
- name: Apply packer patch (upgrade linuxqtdeploy to continuous)
if: matrix.os =='ubuntu-20.04'
run: |
npm run patch
- name: Build application
Expand All @@ -39,6 +45,7 @@ jobs:
env:
VERSION: ${{ github.ref_name }}
- name: Upload artefact
if: matrix.os =='ubuntu-20.04'
uses: actions/upload-artifact@v4
with:
name: DeadbrainWallet-${{ github.ref_name }}-x86_64.AppImage
Expand Down
Empty file.
3 changes: 3 additions & 0 deletions deploy/win32/DeadbrainWallet/qode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"distPath": ".\\dist"
}
Empty file.
40 changes: 4 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
"scripts": {
"start": "qode --inspect src/main.js",
"build": "webpack --config webpack.config.js",
"package": "rm -rf deploy/linux/build/ && nodegui-packer --pack dist",
"package": "nodegui-packer --pack dist",
"patch": "cd node_modules/@nodegui/packer && patch scripts/setupBinaries.js ../../../nodegui-packer.patch && rm deps/linuxdeployqt && npm run postinstall",
"test": "echo \"No test. Only talent. \" && exit 0"
},
"author": "",
"license": "ISC",
"dependencies": {
"@nodegui/nodegui": "^0.59.0",
"@nodegui/os-utils": "^1.1.2",
"@nodegui/nodegui": "^0.66.0",
"debug": "^4.3.4",
"dogecoin-spv": "github:ShibeTechnology/dogecoin-spv-node#v0.6.1",
"node-notifier": "^10.0.1",
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ module.exports = {
patterns: [
{ from: 'assets', to: 'assets' },
// the prebuilds for leveldb and secp256k1
{ from: 'node_modules/leveldown/prebuilds/linux-x64/', to: 'prebuilds/linux-x64/'}
{ from: 'node_modules/leveldown/prebuilds/linux-x64/', to: 'prebuilds/linux-x64/'},
{ from: 'node_modules/leveldown/prebuilds/win32-x64/', to: 'prebuilds/win32-x64/'}
],
}),
],
Expand Down

0 comments on commit 0a155c9

Please sign in to comment.