Skip to content

Commit

Permalink
just let it build
Browse files Browse the repository at this point in the history
  • Loading branch information
ab77 committed Dec 31, 2022
1 parent 5312ea5 commit fe1c757
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 41 deletions.
38 changes: 0 additions & 38 deletions .github/actions/publish/action.yml
Expand Up @@ -41,10 +41,6 @@ runs:
node-version: ${{ inputs.NODE_VERSION }}
cache: npm

- name: Install node-gyp
shell: bash
run: npm install --global node-gyp@latest

- name: Install yq
shell: bash
run: choco install yq
Expand Down Expand Up @@ -163,7 +159,6 @@ runs:
false
fi
npm run flowzone-preinstall-${runner_os}
npm link electron-builder
TARGETS="$(yq e '.build.[env(ELECTRON_BUILDER_OS)].target[].target' package.json)"
Expand All @@ -173,39 +168,6 @@ runs:
archs=(${archs})
arch_flags=$(for arch in ${archs[*]}; do echo "--${arch}"; done | tr '\n' ' ')
# compile for ARM architectures (https://github.com/theofficialgman)
# https://github.com/Pi-Apps-Coders/files/blob/main/CompileCommands.md#balenaetcher
for arch in ${archs[*]}; do
if [[ "$arch" =~ arm ]]; then
NPM_CONFIG_arch="${arch}"
NPM_CONFIG_target_arch="${NPM_CONFIG_arch}"
for module in node_modules/usb node_modules/lzma-native; do
pushd "${module}"
# https://github.com/nodejs/node-gyp#command-options
node-gyp clean configure build --verbose --arch=${arch}
# FIXME: remove after debugging
find prebuilds
popd
done
# FIXME: might need to do some digging here
pushd node_modules/@ronomon/direct-io
node-gyp clean configure build --verbose --arch=${arch}
find .
popd
npm run webpack
fi
done
unset NPM_CONFIG_arch NPM_CONFIG_target_arch
electron-builder "--${ELECTRON_BUILDER_OS}" ${target} ${arch_flags} \
--c.extraMetadata.analytics.sentry.token='${{ steps.sentry.outputs.dsn }}' \
--c.extraMetadata.analytics.mixpanel.token='balena-etcher' \
Expand Down
3 changes: 0 additions & 3 deletions package.json
Expand Up @@ -214,7 +214,6 @@
"target": "AppImage",
"arch": [
"x64",
"ia32",
"arm64",
"armv7l"
]
Expand All @@ -223,7 +222,6 @@
"target": "rpm",
"arch": [
"x64",
"ia32",
"arm64",
"armv7l"
]
Expand All @@ -232,7 +230,6 @@
"target": "deb",
"arch": [
"x64",
"ia32",
"arm64",
"armv7l"
]
Expand Down

0 comments on commit fe1c757

Please sign in to comment.