Skip to content

Commit

Permalink
combined release win32mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
Detlef Groth committed Aug 23, 2024
1 parent 59817c4 commit 89c4c19
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/binaries-mingw32gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,15 @@ jobs:
with:
name: MicroEmacs09-${{ env.VERSION }}-Windows-mewb
path: MicroEmacs09-${{ env.VERSION }}-Windows-mewb

- name: Combined Release
run: |
make -f win32mingw.gmk release app=mecb
make -f win32mingw.gmk release app=mewb
export DIR=`ls windows-*-mecb.exe | sed 's/-mecb.exe//'`
echo $DIR
- name: Upload Ubuntu Combined Release
uses: actions/upload-artifact@v4
with:
name: Release-Windows
path: windows-*/
16 changes: 14 additions & 2 deletions win32mingw.gmk
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
VERSION=$(shell grep -E 'meYEAR|meMONTH|meDAY' src/evers.h | head -n 3 | awk '{ print $$3 }' | paste -sd '-' | sed 's/[-"]//g')
RELEASE=windows-microemacs-$(VERSION)
app=mecb
bfs/exe:
cd bfs && make -f win32mingw.gmk clean
cd bfs && make -f win32mingw.gmk
Expand All @@ -12,7 +14,17 @@ mew:
cd src && make -f win32mingw.mak CC=i686-w64-mingw32-gcc RC=i686-w64-mingw32-windres

mecb: bfs/bin mec
./bfs/bfs -a ./src/.win32mingw-release-mec/mec32.exe -o mecb-$(VERSION)-windows.exe ./jasspa
./bfs/bfs -a ./src/.win32mingw-release-mec/mec32.exe -o $(RELEASE)-mecb.exe ./jasspa

mewb: bfs/bin mew
./bfs/bfs -a ./src/.win32mingw-release-mew/mew32.exe -o mewb-$(VERSION)-windows.exe ./jasspa
./bfs/bfs -a ./src/.win32mingw-release-mew/mew32.exe -o $(RELEASE)-mewb.exe ./jasspa

release: bfs/exe $(app)
-rm -rf $(RELEASE)/$(RELEASE)-$(app)
mkdir -p $(RELEASE)/$(RELEASE)-$(app)/bin
cp $(RELEASE)-$(app).exe $(RELEASE)/$(RELEASE)-$(app)/bin/$(app).exe
cp bfs/bfs.exe $(RELEASE)/$(RELEASE)-$(app)/bin/
cp bfs/bfs-readme.md $(RELEASE)/$(RELEASE)-$(app)/
cp license.txt COPYING README-standalone.md $(RELEASE)/$(RELEASE)-$(app)/
cd $(RELEASE) && zip -r $(RELEASE)-$(app).zip $(RELEASE)-$(app)/*
cd $(RELEASE) && rm -rf $(RELEASE)-$(app)

0 comments on commit 89c4c19

Please sign in to comment.