Skip to content

fix output target

fix output target #73

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
verify-fred:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
# fred and scripts are subrepositories. They must be updated to match the release.
- name: verify freenet.jar
shell: bash
run: |
echo "install python"; sudo apt-get install python3
pip install pyFreenet3
./run-node.sh
echo -e "export fredDir=\"$(realpath .)/fred\"\nexport freenetExtPath=\"$HOME/Freenet/freenet-ext.jar\"\nexport fcpHost=127.0.0.1\nexport fcpPort=9481\n" > "$HOME"/.freenetrc
cp "$HOME"/Freenet/freenet.jar ./wininstaller-innosetup/freenet.jar
wget https://www.hyphanet.org/assets/keyring.gpg && gpg --import keyring.gpg
cat ~/Freenet/wrapper.log
echo "update JAVA_HOME environment variable"; source /etc/environment; source /etc/profile; export JAVA_HOME=/usr/lib/jvm/temurin-8-jdk-amd64
echo "install sdkman"; curl -s "https://get.sdkman.io" | bash; source "/home/runner/.sdkman/bin/sdkman-init.sh"
sdk install java 8.0.402-tem && cd ./scripts && ./verify-build --tag build01498 --online && cd -
./stop-node.sh
windows-installer:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
- name: Checkout fred
uses: actions/checkout@v2
with:
repository: 'hyphanet/fred'
fetch-depth: 0
path: 'wininstaller-innosetup/fred'
- name: prepare the windows installer
shell: bash
run: |
cd ./wininstaller-innosetup
curl "https://github.com/freenet/fred/releases/download/build01498/freenet-build01498.jar" > freenet.jar
./gradlew unzip updateSetupFile
- name: build the windows installer
shell: cmd
run: |
cd ./wininstaller-innosetup
"%programfiles(x86)%\Inno Setup 6\iscc.exe" "FreenetInstall_InnoSetup.iss"
- name: Upload the windows installer as an artifact
id: upload-artifact
uses: actions/upload-artifact@v4
if: ${{ github.event_name != 'pull_request' }}
with:
path: "wininstaller-innosetup/Output/FreenetInstaller.exe"
name: wininstaller-innosetup
- name: sign the windows installer
uses: SignPath/github-action-submit-signing-request@v0.4
id: sign-installer
with:
api-token: '${{ secrets.SIGNPATHTOKEN }}'
organization-id: '1a5f43b2-f4e4-4ce5-888d-7c6277131a02'
project-slug: 'sign-windows-installer'
signing-policy-slug: 'test-signing'
github-artifact-id: '${{ steps.upload-artifact.outputs.artifact-id }}'
output-artifact-directory: 'wininstaller-innosetup/OutputSigned'
- name: Upload the signed windows installer as an artifact
uses: actions/upload-artifact@v4
if: ${{ github.event_name != 'pull_request' }}
with:
path: "wininstaller-innosetup/OutputSigned/FreenetInstaller.exe"
name: wininstaller-innosetup-signed