Compare commits

..

No commits in common. "2d5d81b9d6cf91a9d355851943366ba874242ab9" and "96d544e3148757d5b63bf80e7657fb725c81e07f" have entirely different histories.

2 changed files with 20 additions and 35 deletions

View File

@ -29,19 +29,17 @@ jobs:
- uses: actions/setup-node@v6 - uses: actions/setup-node@v6
- name: Windows-specific - if: ${{ matrix.os == 'windows-latest' }}
if: ${{ matrix.os == 'windows-latest' }}
run: | run: |
choco install wget zip choco install wget zip
- name: Ubuntu-specific - if: ${{ matrix.os == 'ubuntu-latest' }}
if: ${{ matrix.os == 'ubuntu-latest' }}
run: | run: |
# fixes an issue when running npx sandboxing... # fixes an issue when running npx sandboxing...
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
#- name: MacOS-specific - name: Check build dependencies
# if: ${{ matrix.os == 'macos-latest' }} run: make check
- name: Pre-Build - name: Pre-Build
run: make clean-all dev run: make clean-all dev

View File

@ -15,12 +15,10 @@
# also nodejs-legacy seems to be required in some # also nodejs-legacy seems to be required in some
# contexts... # contexts...
# - wget # - wget
# - zip / unzip # - zip / unzip / zipnote
# NOTE: since zipnote fails in some cases it is # if zipnote fails this is likely due to a bug in
# removed from dependencies. # v3.0, to fix this by either upgrading to 3.1 or
# this behavior s is likely due to a bug in # a patched version of 3.0...
# v3.0, to fix this by either upgrading to
# 3.1 or a patched version of 3.0...
# for more info and patch see: # for more info and patch see:
# https://goo.gl/csQmQo # https://goo.gl/csQmQo
# - Optional # - Optional
@ -407,7 +405,7 @@ DEPENDENCIES_WEB = node npm npx
DEPENDENCIES = $(DEPENDENCIES_WEB) \ DEPENDENCIES = $(DEPENDENCIES_WEB) \
$(DEPENDENCIES_HELP) \ $(DEPENDENCIES_HELP) \
wget zip unzip git wget zip unzip zipnote git
@ -561,14 +559,6 @@ run: electron-run
install: dev install: dev
# XXX STUB: move the builds to specific release tags...
.PHONY: update-release-tag
update-release-tag: ## Move release-latest tag to HEAD
git push origin :refs/tags/release-latest
git tag -fam "TEST" release-latest
git push origin --tags
### Cleanup... ### Cleanup...
.PHONY: clean .PHONY: clean
@ -923,21 +913,18 @@ $(BUILD_DIR)/$(APP_NAME)-%.in-place.zip: $(TARGET_DIR)/$(ELECTRON_DIST) \
# rename electron stuff... # rename electron stuff...
# # XXX rename "Electron Helper" on mac builds -- this needs Info.plist changes... # # XXX rename "Electron Helper" on mac builds -- this needs Info.plist changes...
# | sed 's/\(^@ \(.*\)Electron Helper\(.*\)\)$$/\1\n@=\2$(APP_NAME) Helper\3/' # | sed 's/\(^@ \(.*\)Electron Helper\(.*\)\)$$/\1\n@=\2$(APP_NAME) Helper\3/'
unzip -p "$@.tmp" LICENSE > $(BUILD_DIR)/LICENSE.electron zipnote "$@.tmp" \
# rename app... | sed 's/\(^@ LICENSE\)$$/\1\n@=LICENSE.electron/' \
# # XXX also rename MacOS/Electron -> $(APP_NAME) -- this needs Info.plist changes... | zipnote -w "$@.tmp"
unzip -d $(BUILD_DIR) "$@.tmp" "$(ELECTRON_BIN)$(EXT)"
zip -d "$@.tmp" "$(ELECTRON_BIN)$(EXT)"
mv "${BUILD_DIR}"/{"$(ELECTRON_BIN)$(EXT)","$(APP_BIN)$(EXT)"}
# add app.asar and friends... # add app.asar and friends...
$(MD) "$(BUILD_DIR)/$(ASAR_PATH)" $(MD) "$(BUILD_DIR)/$(ASAR_PATH)"
cp -r $(BUILD_DIR)/app.asar* "$(BUILD_DIR)/$(ASAR_PATH)/" cp -r $(BUILD_DIR)/app.asar* "$(BUILD_DIR)/$(ASAR_PATH)/"
$(call zipFrom,"$(BUILD_DIR)",$@.tmp,\ $(call zipFrom,"$(BUILD_DIR)",$@.tmp,"$(ASAR_PATH)" "$(notdir $(BUILD_INFO))" "$(LICENSE)")
"$(ASAR_PATH)" \ # rename app...
"$(notdir $(BUILD_INFO))" \ # # XXX also rename MacOS/Electron -> $(APP_NAME) -- this needs Info.plist changes...
"$(LICENSE)" \ zipnote "$@.tmp" \
"$(LICENSE).electron" \ | sed 's/\(^@ $(ELECTRON_BIN)$(EXT)\)\(.*$$\)/\1\2\n@=$(APP_BIN)$(EXT)\2/' \
"$(APP_BIN)$(EXT)") | zipnote -w "$@.tmp"
# cleanup... # cleanup...
$(RM) $(BUILD_DIR)/$(firstword $(subst /, ,$(ASAR_PATH))) $(RM) $(BUILD_DIR)/$(firstword $(subst /, ,$(ASAR_PATH)))
mv "$@.tmp" "$@" mv "$@.tmp" "$@"