@@ -6,7 +6,7 @@ const github = require('@actions/github');
6
6
const tc = require ( '@actions/tool-cache' ) ;
7
7
const io = require ( '@actions/io' ) ;
8
8
const semver = require ( 'semver' ) ;
9
- const { parseEtcRelease, isSelfHosted } = require ( './utils' ) ;
9
+ const { parseEtcRelease, isSelfHosted, getWindowsDrive } = require ( './utils' ) ;
10
10
11
11
function LinuxDistroConfig ( versionIds , envMap , commands ) {
12
12
return {
@@ -79,12 +79,11 @@ async function run() {
79
79
if ( arch != 'x86' && arch != 'x86_64' ) {
80
80
core . setFailed ( '"arch" may only be x86 or x86_64' ) ;
81
81
}
82
-
82
+ const rootDriveLetter = isSelfHosted ( ) ? 'C:' : getWindowsDrive ( process . cwd ( ) ) + ':' ;
83
83
if ( buildSource ) {
84
84
const installDir =
85
- process . env . GSTREAMER_INSTALL_DIR ?? path . join ( isSelfHosted ( ) ? 'C:' : 'D:' , `gstreamer\\1.0\\msvc_${ arch } ` ) ;
86
-
87
- const sourceDir = path . join ( isSelfHosted ( ) ? 'C:' : 'D:' , 'gstreamer_source' ) ;
85
+ process . env . GSTREAMER_INSTALL_DIR ?? path . join ( rootDriveLetter , `gstreamer\\1.0\\msvc_${ arch } ` ) ;
86
+ const sourceDir = path . join ( rootDriveLetter , 'gstreamer_source' ) ;
88
87
89
88
core . info ( "Cloning gstreamer's git repository..." ) ;
90
89
await exec . exec ( 'git' , [ 'config' , '--global' , 'http.postBuffer' , '524288000' ] ) ;
@@ -126,7 +125,7 @@ async function run() {
126
125
gstreamerPath = installDir ;
127
126
} else {
128
127
const installDir =
129
- process . env . GSTREAMER_INSTALL_DIR ?? path . join ( isSelfHosted ( ) ? 'C:' : 'D:' , 'gstreamer' ) ;
128
+ process . env . GSTREAMER_INSTALL_DIR ?? path . join ( rootDriveLetter , 'gstreamer' ) ;
130
129
131
130
const installers = [
132
131
`gstreamer-1.0-msvc-${ arch } -${ version } .msi` ,
0 commit comments