-
Notifications
You must be signed in to change notification settings - Fork 0
108 lines (98 loc) · 3.15 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: build
on:
push:
branches: [ main ]
jobs:
build:
runs-on: windows-2022
environment: prod
steps:
- name: Checkout
uses: actions/checkout@v4
# choco install innosetup
- name: Build
shell: powershell
run: |
dir
cd D:\
dir
cd a\
dir
cd "D:\Program Files (x86)"
dir
# choco install python310 > $null
#
# Remove-Item -Force -Recurse -ErrorAction SilentlyContinue venv
#
# C:\hostedtoolcache\windows\Python\3.10.11\x64\python.exe --version
# C:\hostedtoolcache\windows\Python\3.10.11\x64\python.exe -m venv venv
# cd .\venv\Scripts
# ./Activate.ps1
# cd ..\..\
#
# python -m pip install -r requirements.txt
# python -m pip install -r requirements-stage2.txt
#
# python -m pip freeze
#
# & .\scripts\build.ps1
# jobs:
# build:
# runs-on: macos-11
# environment: prod
# steps:
# - name: Checkout
# uses: actions/checkout@v4
#
# - name: Import certs
# shell: bash
# env:
# CERTS_P12: ${{ secrets.CERTS_P12 }}
# CERTS_P12_PASSWORD: ${{ secrets.CERTS_P12_PASSWORD }}
# run: |
# set -eo pipefail
# # https://github.com/Apple-Actions/import-codesign-certs/blob/master/src/security.ts
#
# CERTS_PATH=$RUNNER_TEMP/bundle.p12
# echo -n "$CERTS_P12" | base64 -d -o "$CERTS_PATH"
# KEYCHAIN_PATH=$RUNNER_TEMP/app-signing
# KEYCHAIN_PASSWORD=foo
#
# # create temporary keychain
# security create-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
# security set-keychain-settings -lut 21600 $KEYCHAIN_PATH
# security unlock-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
#
# # import and allow all applications to use it
# security import "$CERTS_PATH" -k $KEYCHAIN_PATH -f pkcs12 -A -T /usr/bin/codesign -T /usr/bin/security -P "$CERTS_P12_PASSWORD"
#
# # magic incantation that is necessary
# security set-key-partition-list -S apple-tool:,apple: -k "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
#
# # also necessary, this command actually sets things (even though the name).
# security list-keychains -d user -s $KEYCHAIN_PATH login.keychain
#
# # check that we have a valid codesigning cert
# security find-identity -vp codesigning $KEYCHAIN_PATH
#
# - uses: actions/setup-python@v5
# with:
# python-version: '3.10'
#
# - shell: bash
# env:
# POINTER_CC_VERSION: ${{ vars.POINTER_CC_VERSION }}
# run: |
# python3 --version
# python3 -m venv venv
# source venv/bin/activate
# pip install -r requirements.txt
# pip install -r requirements-stage2.txt
# ./scripts/build.sh
# ./scripts/package-mac.sh
#
# - name: Upload Artifacts
# uses: actions/upload-artifact@v2
# with:
# name: disk-image
# path: dist/*.dmg