File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
windows :
11
11
name : Package Windows
12
- runs-on : ubuntu-latest
12
+ runs-on : windows-2019
13
13
strategy :
14
14
matrix :
15
- runtime : [win-x64, win-arm64]
15
+ runtime : [ win-x64, win-arm64 ]
16
16
steps :
17
17
- name : Checkout sources
18
18
uses : actions/checkout@v4
22
22
name : sourcegit.${{ matrix.runtime }}
23
23
path : build/SourceGit
24
24
- name : Package
25
+ shell : bash
25
26
env :
26
27
VERSION : ${{ inputs.version }}
27
28
RUNTIME : ${{ matrix.runtime }}
69
70
linux :
70
71
name : Package Linux
71
72
runs-on : ubuntu-latest
73
+ container : ubuntu:20.04
72
74
strategy :
73
75
matrix :
74
76
runtime : [linux-x64, linux-arm64]
77
79
uses : actions/checkout@v4
78
80
- name : Download package dependencies
79
81
run : |
80
- sudo add-apt-repository universe
81
- sudo apt-get update
82
- sudo apt-get install desktop-file-utils rpm libfuse2
82
+ export DEBIAN_FRONTEND=noninteractive
83
+ ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime
84
+ apt-get update
85
+ apt-get install -y curl wget git dpkg-dev fakeroot tzdata zip unzip desktop-file-utils rpm libfuse2 file build-essential binutils
83
86
- name : Download build
84
87
uses : actions/download-artifact@v4
85
88
with :
89
92
env :
90
93
VERSION : ${{ inputs.version }}
91
94
RUNTIME : ${{ matrix.runtime }}
95
+ APPIMAGE_EXTRACT_AND_RUN : 1
92
96
run : |
93
97
mkdir build/SourceGit
94
98
tar -xf "build/sourcegit.${{ matrix.runtime }}.tar" -C build/SourceGit
Original file line number Diff line number Diff line change 9
9
10
10
rm -rf SourceGit/* .pdb
11
11
12
- zip " sourcegit_$VERSION .$RUNTIME .zip" -r SourceGit
12
+ if [[ " $OSTYPE " == " msys" || " $OSTYPE " == " cygwin" || " $OSTYPE " == " win32" ]]; then
13
+ powershell -Command " Compress-Archive -Path SourceGit\\ * -DestinationPath \" sourcegit_$VERSION .$RUNTIME .zip\" -Force"
14
+ else
15
+ zip " sourcegit_$VERSION .$RUNTIME .zip" -r SourceGit
16
+ fi
You can’t perform that action at this time.
0 commit comments