Skip to content

Commit 3e9b905

Browse files
committed
Lets try to fix signing step on macos
1 parent 1732efb commit 3e9b905

File tree

5 files changed

+211
-172
lines changed

5 files changed

+211
-172
lines changed

.github/workflows/build-packages.yml

Lines changed: 168 additions & 168 deletions
Original file line numberDiff line numberDiff line change
@@ -16,127 +16,127 @@ env:
1616
MACOS_NOTARIZE_PASSWORD: ${{ secrets.PROD_MACOS_NOTARIZE_PWD }}
1717

1818
jobs:
19-
Linux:
20-
runs-on: ubuntu-latest
21-
steps:
22-
- uses: actions/checkout@v3
23-
- name: Checkout submodules
24-
shell: bash
25-
run: |
26-
git submodule sync --recursive
27-
git submodule update --init --force --recursive --depth=1
28-
echo "$VERSION" > ganttproject-builder/VERSION
29-
- uses: actions/setup-java@v3
30-
with:
31-
distribution: 'liberica'
32-
java-version: 21.0.9
33-
java-package: jdk+fx
34-
cache: 'gradle'
35-
- name: Build GanttProject
36-
run: |
37-
./gradlew distbin distzip
38-
./gradlew -PwithJavafx distdeb
39-
echo "===== PLUGINS ====="
40-
ls ganttproject-builder/dist-bin/plugins/base
41-
42-
sudo apt-get install -y desktop-file-utils
43-
wget -O appimagetool https://github.com/AppImage/appimagetool/releases/download/1.9.0/appimagetool-x86_64.AppImage
44-
chmod 755 ./appimagetool
45-
46-
build-bin/package-lin.sh build/distributions
47-
48-
echo "===== DISTRIBUTIONS ====="
49-
ls build/distributions
50-
51-
- id: 'auth'
52-
uses: 'google-github-actions/auth@v1'
53-
with:
54-
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
55-
56-
- name: 'Set up Cloud SDK'
57-
uses: 'google-github-actions/setup-gcloud@v1'
58-
59-
- name: 'Use gcloud CLI'
60-
run: 'gcloud info'
61-
62-
- name: Upload Packages
63-
run: |
64-
#!/bin/sh
65-
cd build/distributions
66-
for f in *; do
67-
gsutil cp $f gs://dl.ganttproject.biz && gsutil acl ch -u AllUsers:R gs://dl.ganttproject.biz/$f;
68-
done;
69-
70-
Windows:
71-
runs-on: windows-latest
72-
steps:
73-
- uses: actions/checkout@v3
74-
- name: Checkout submodules
75-
shell: bash
76-
run: |
77-
git submodule sync --recursive
78-
git submodule update --init --force --recursive --depth=1
79-
echo "$VERSION" > ganttproject-builder/VERSION
80-
- uses: actions/setup-java@v3
81-
with:
82-
distribution: 'liberica'
83-
java-version: 21.0.9
84-
java-package: jdk+fx
85-
cache: 'gradle'
86-
- name: Build GanttProject
87-
run: |
88-
./gradlew distbin
89-
echo "===== PLUGINS ====="
90-
ls ganttproject-builder/dist-bin/plugins/base
91-
- name: Build MSI installer
92-
run: |
93-
build-bin/package-win.bat
94-
95-
- id: 'auth'
96-
uses: 'google-github-actions/auth@v1'
97-
with:
98-
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
99-
100-
- name: 'Set up Cloud SDK'
101-
uses: 'google-github-actions/setup-gcloud@v1'
102-
103-
- name: 'Use gcloud CLI'
104-
run: 'gcloud info'
105-
106-
- name: Upload Packages
107-
run: |
108-
gsutil cp build\ganttproject-$env:VERSION.msi gs://dl.ganttproject.biz
109-
gsutil acl ch -u AllUsers:R gs://dl.ganttproject.biz/ganttproject-$env:VERSION.msi
110-
111-
- name: Install NSIS
112-
run: |
113-
iwr -useb get.scoop.sh -outfile 'install.ps1'
114-
.\install.ps1 -RunAsAdmin
115-
scoop update
116-
scoop bucket add extras
117-
scoop install nsis
118-
- name: Print NSIS version
119-
run: C:\Users\runneradmin\scoop\shims\makensis -VERSION
120-
- name: Print NSIS compile flags
121-
run: C:\Users\runneradmin\scoop\shims\makensis -HDRINFO
122-
123-
- name: Prepare files for NSIS
124-
run: |
125-
./gradlew distwin
126-
echo "===== dist-win ====="
127-
ls ganttproject-builder/dist-win
128-
129-
- name: Build NSIS package
130-
run: |
131-
cd ganttproject-builder\dist-win
132-
C:\Users\runneradmin\scoop\shims\makensis ganttproject.nsi
133-
dir
134-
mv ganttproject-$env:VERSION.exe ..\..\build
135-
136-
- name: Upload Packages
137-
run: |
138-
gsutil cp build\ganttproject-$env:VERSION.exe gs://dl.ganttproject.biz
139-
gsutil acl ch -u AllUsers:R gs://dl.ganttproject.biz/ganttproject-$env:VERSION.exe
19+
# Linux:
20+
# runs-on: ubuntu-latest
21+
# steps:
22+
# - uses: actions/checkout@v3
23+
# - name: Checkout submodules
24+
# shell: bash
25+
# run: |
26+
# git submodule sync --recursive
27+
# git submodule update --init --force --recursive --depth=1
28+
# echo "$VERSION" > ganttproject-builder/VERSION
29+
# - uses: actions/setup-java@v3
30+
# with:
31+
# distribution: 'liberica'
32+
# java-version: 21.0.9
33+
# java-package: jdk+fx
34+
# cache: 'gradle'
35+
# - name: Build GanttProject
36+
# run: |
37+
# ./gradlew distbin distzip
38+
# ./gradlew -PwithJavafx distdeb
39+
# echo "===== PLUGINS ====="
40+
# ls ganttproject-builder/dist-bin/plugins/base
41+
#
42+
# sudo apt-get install -y desktop-file-utils
43+
# wget -O appimagetool https://github.com/AppImage/appimagetool/releases/download/1.9.0/appimagetool-x86_64.AppImage
44+
# chmod 755 ./appimagetool
45+
#
46+
# build-bin/package-lin.sh build/distributions
47+
#
48+
# echo "===== DISTRIBUTIONS ====="
49+
# ls build/distributions
50+
#
51+
# - id: 'auth'
52+
# uses: 'google-github-actions/auth@v1'
53+
# with:
54+
# credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
55+
#
56+
# - name: 'Set up Cloud SDK'
57+
# uses: 'google-github-actions/setup-gcloud@v1'
58+
#
59+
# - name: 'Use gcloud CLI'
60+
# run: 'gcloud info'
61+
#
62+
# - name: Upload Packages
63+
# run: |
64+
# #!/bin/sh
65+
# cd build/distributions
66+
# for f in *; do
67+
# gsutil cp $f gs://dl.ganttproject.biz && gsutil acl ch -u AllUsers:R gs://dl.ganttproject.biz/$f;
68+
# done;
69+
#
70+
# Windows:
71+
# runs-on: windows-latest
72+
# steps:
73+
# - uses: actions/checkout@v3
74+
# - name: Checkout submodules
75+
# shell: bash
76+
# run: |
77+
# git submodule sync --recursive
78+
# git submodule update --init --force --recursive --depth=1
79+
# echo "$VERSION" > ganttproject-builder/VERSION
80+
# - uses: actions/setup-java@v3
81+
# with:
82+
# distribution: 'liberica'
83+
# java-version: 21.0.9
84+
# java-package: jdk+fx
85+
# cache: 'gradle'
86+
# - name: Build GanttProject
87+
# run: |
88+
# ./gradlew distbin
89+
# echo "===== PLUGINS ====="
90+
# ls ganttproject-builder/dist-bin/plugins/base
91+
# - name: Build MSI installer
92+
# run: |
93+
# build-bin/package-win.bat
94+
#
95+
# - id: 'auth'
96+
# uses: 'google-github-actions/auth@v1'
97+
# with:
98+
# credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
99+
#
100+
# - name: 'Set up Cloud SDK'
101+
# uses: 'google-github-actions/setup-gcloud@v1'
102+
#
103+
# - name: 'Use gcloud CLI'
104+
# run: 'gcloud info'
105+
#
106+
# - name: Upload Packages
107+
# run: |
108+
# gsutil cp build\ganttproject-$env:VERSION.msi gs://dl.ganttproject.biz
109+
# gsutil acl ch -u AllUsers:R gs://dl.ganttproject.biz/ganttproject-$env:VERSION.msi
110+
#
111+
# - name: Install NSIS
112+
# run: |
113+
# iwr -useb get.scoop.sh -outfile 'install.ps1'
114+
# .\install.ps1 -RunAsAdmin
115+
# scoop update
116+
# scoop bucket add extras
117+
# scoop install nsis
118+
# - name: Print NSIS version
119+
# run: C:\Users\runneradmin\scoop\shims\makensis -VERSION
120+
# - name: Print NSIS compile flags
121+
# run: C:\Users\runneradmin\scoop\shims\makensis -HDRINFO
122+
#
123+
# - name: Prepare files for NSIS
124+
# run: |
125+
# ./gradlew distwin
126+
# echo "===== dist-win ====="
127+
# ls ganttproject-builder/dist-win
128+
#
129+
# - name: Build NSIS package
130+
# run: |
131+
# cd ganttproject-builder\dist-win
132+
# C:\Users\runneradmin\scoop\shims\makensis ganttproject.nsi
133+
# dir
134+
# mv ganttproject-$env:VERSION.exe ..\..\build
135+
#
136+
# - name: Upload Packages
137+
# run: |
138+
# gsutil cp build\ganttproject-$env:VERSION.exe gs://dl.ganttproject.biz
139+
# gsutil acl ch -u AllUsers:R gs://dl.ganttproject.biz/ganttproject-$env:VERSION.exe
140140

141141
macOS_silicon:
142142
runs-on: macos-latest
@@ -186,50 +186,50 @@ jobs:
186186
dmgbuild -s build-cfg/dmgbuild.py "$MAC_APP_NAME" ./ganttproject-$VERSION-silicon.dmg
187187
gsutil cp ./ganttproject-$VERSION-silicon.dmg gs://dl.ganttproject.biz && gsutil acl ch -u AllUsers:R gs://dl.ganttproject.biz/ganttproject-$VERSION-silicon.dmg;
188188
189-
macOS_intel:
190-
runs-on: macos-15-intel
191-
steps:
192-
- uses: actions/checkout@v3
193-
- name: Checkout submodules
194-
shell: bash
195-
run: |
196-
git submodule sync --recursive
197-
git submodule update --init --force --recursive --depth=1
198-
echo "$VERSION" > ganttproject-builder/VERSION
199-
- uses: actions/setup-java@v3
200-
with:
201-
distribution: 'liberica'
202-
java-version: 21.0.9
203-
java-package: jdk+fx
204-
cache: 'gradle'
205-
- name: Build GanttProject
206-
run: |
207-
./gradlew distbin
208-
echo "===== PLUGINS ====="
209-
ls ganttproject-builder/dist-bin/plugins/base
210-
211-
- name: Build GanttProject.app
212-
run: |
213-
./build-bin/package-mac.sh
214-
./build/GanttProject.app/Contents/MacOS/GanttProject -h || echo "failed to run"
215-
216-
- name: Sign GanttProject.app
217-
run: |
218-
build-bin/notarize.sh $VERSION "BarD Software s.r.o" "$MACOS_NOTARIZE_PASSWORD" all
219-
220-
- id: 'auth'
221-
uses: 'google-github-actions/auth@v1'
222-
with:
223-
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
224-
225-
- name: 'Set up Cloud SDK'
226-
uses: 'google-github-actions/setup-gcloud@v1'
227-
228-
- name: 'Use gcloud CLI'
229-
run: 'gcloud info'
230-
231-
- uses: actions/setup-python@v5
232-
- run: |
233-
pip install dmgbuild
234-
dmgbuild -s build-cfg/dmgbuild.py "$MAC_APP_NAME" ./ganttproject-$VERSION-intel.dmg
235-
gsutil cp ./ganttproject-$VERSION-intel.dmg gs://dl.ganttproject.biz && gsutil acl ch -u AllUsers:R gs://dl.ganttproject.biz/ganttproject-$VERSION-intel.dmg;
189+
# macOS_intel:
190+
# runs-on: macos-15-intel
191+
# steps:
192+
# - uses: actions/checkout@v3
193+
# - name: Checkout submodules
194+
# shell: bash
195+
# run: |
196+
# git submodule sync --recursive
197+
# git submodule update --init --force --recursive --depth=1
198+
# echo "$VERSION" > ganttproject-builder/VERSION
199+
# - uses: actions/setup-java@v3
200+
# with:
201+
# distribution: 'liberica'
202+
# java-version: 21.0.9
203+
# java-package: jdk+fx
204+
# cache: 'gradle'
205+
# - name: Build GanttProject
206+
# run: |
207+
# ./gradlew distbin
208+
# echo "===== PLUGINS ====="
209+
# ls ganttproject-builder/dist-bin/plugins/base
210+
#
211+
# - name: Build GanttProject.app
212+
# run: |
213+
# ./build-bin/package-mac.sh
214+
# ./build/GanttProject.app/Contents/MacOS/GanttProject -h || echo "failed to run"
215+
#
216+
# - name: Sign GanttProject.app
217+
# run: |
218+
# build-bin/notarize.sh $VERSION "BarD Software s.r.o" "$MACOS_NOTARIZE_PASSWORD" all
219+
#
220+
# - id: 'auth'
221+
# uses: 'google-github-actions/auth@v1'
222+
# with:
223+
# credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
224+
#
225+
# - name: 'Set up Cloud SDK'
226+
# uses: 'google-github-actions/setup-gcloud@v1'
227+
#
228+
# - name: 'Use gcloud CLI'
229+
# run: 'gcloud info'
230+
#
231+
# - uses: actions/setup-python@v5
232+
# - run: |
233+
# pip install dmgbuild
234+
# dmgbuild -s build-cfg/dmgbuild.py "$MAC_APP_NAME" ./ganttproject-$VERSION-intel.dmg
235+
# gsutil cp ./ganttproject-$VERSION-intel.dmg gs://dl.ganttproject.biz && gsutil acl ch -u AllUsers:R gs://dl.ganttproject.biz/ganttproject-$VERSION-intel.dmg;

0 commit comments

Comments
 (0)