Skip to content

Commit

Permalink
fix build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrouget committed Feb 7, 2024
1 parent 049bf98 commit 71b9206
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,19 +159,26 @@ node_arch=$target_arch
node_os=$target_os
deb_arch=$target_arch

filepicker_target=filepicker-$target
filepicker_target_dir=filepicker-$target
if [[ $target_os == "win7" || $target_os == "windows" ]];
then
exe_extension=".exe"
else
exe_extension=""
fi


filepicker_target=filepicker-$target$exe_extension
ffmpeg_target=ffmpeg-$package_ffmpeg_build_version-$target
ffmpeg_target_dir=ffmpeg-$target
if [ $target_os == "win7" ]; then
node_os="windows"
ffmpeg_target=ffmpeg-$package_ffmpeg_build_version-windows-$target_arch
ffmpeg_target_dir=ffmpeg-windows-$target_arch
filepicker_target=filepicker-windows-$target_arch
filepicker_target_dir=filepicker-windows-$target_arch
filepicker_target=filepicker-windows-$target_arch$exe_extension
fi
if [ $target_os == "mac13" ]; then
node_os="mac"
filepicker_target=filepicker-mac-$target_arch$exe_extension
fi
if [ $target == "linux-aarch64" ]; then
node_arch="arm64"
Expand All @@ -187,13 +194,6 @@ if [ $target == "linux-x86_64" ]; then
deb_arch="amd64"
fi

if [ $node_os == "windows" ];
then
exe_extension=".exe"
else
exe_extension=""
fi

if [ $publish == 1 ]; then
files=(
"dist/linux/i686/$package_binary_name-linux-i686.tar.bz2"
Expand Down Expand Up @@ -336,15 +336,15 @@ else
log "Skipping bundling"
fi

if [[ ! -f $dist_dir/filepicker-$target ]]; then
if [[ ! -f $dist_dir/$filepicker_target ]]; then
log "Retrieving filepicker"
filepicker_url_base="https://github.com/paulrouget/static-filepicker/releases/download/"
filepicker_url=$filepicker_url_base/v$package_filepicker_build_version/$filepicker_target
wget -c $filepicker_url -O $dist_dir/$filepicker_target
chmod +x $dist_dir/$filepicker_target
fi

cp $dist_dir/filepicker-$target $target_dist_dir/filepicker$exe_extension
cp $dist_dir/$filepicker_target $target_dist_dir/filepicker$exe_extension

if [[ ! -d $dist_dir/$ffmpeg_target_dir ]]; then
log "Retrieving ffmpeg"
Expand Down

0 comments on commit 71b9206

Please sign in to comment.