2017-12-31 18:53:16 +00:00
#! /bin/bash
artifactsFolder = "./_artifacts" ;
artifactsFolderWindows = $artifactsFolder /windows
artifactsFolderLinux = $artifactsFolder /linux
artifactsFolderMacOS = $artifactsFolder /macos
artifactsFolderMacOSApp = $artifactsFolder /macos-app
PublishArtifacts( )
{
7z a $artifactsFolder /Lidarr.${ APPVEYOR_REPO_BRANCH } .${ APPVEYOR_BUILD_VERSION } .windows.zip $artifactsFolderWindows /*
7z a $artifactsFolder /Lidarr.${ APPVEYOR_REPO_BRANCH } .${ APPVEYOR_BUILD_VERSION } .osx-app.zip $artifactsFolderMacOSApp /*
2018-03-30 20:09:02 +00:00
mkdir -p $artifactsFolderMacOSApp /StartScript/Lidarr.app/Contents/MacOS
cp ./osx/Lidarr $artifactsFolderMacOSApp /StartScript/Lidarr.app/Contents/MacOS
7z a $artifactsFolder /Lidarr.${ APPVEYOR_REPO_BRANCH } .${ APPVEYOR_BUILD_VERSION } .osx-app.zip $artifactsFolderMacOSApp /StartScript/*
rm -rf $artifactsFolderMacOSApp /StartScript/
2017-12-31 18:53:16 +00:00
7z a -ttar $artifactsFolder /Lidarr.${ APPVEYOR_REPO_BRANCH } .${ APPVEYOR_BUILD_VERSION } .osx.tar $artifactsFolderMacOS /*
2018-03-30 20:09:02 +00:00
mkdir -p $artifactsFolderMacOS /StartScript/Lidarr
cp ./osx/Lidarr $artifactsFolderMacOS /StartScript/Lidarr/Lidarr
7z a -ttar $artifactsFolder /Lidarr.${ APPVEYOR_REPO_BRANCH } .${ APPVEYOR_BUILD_VERSION } .osx.tar $artifactsFolderMacOS /StartScript/*
2017-12-31 18:53:16 +00:00
7z a -tgzip $artifactsFolder /Lidarr.${ APPVEYOR_REPO_BRANCH } .${ APPVEYOR_BUILD_VERSION } .osx.tar.gz $artifactsFolder /Lidarr.${ APPVEYOR_REPO_BRANCH } .${ APPVEYOR_BUILD_VERSION } .osx.tar
rm -f $artifactsFolder /Lidarr.${ APPVEYOR_REPO_BRANCH } .${ APPVEYOR_BUILD_VERSION } .osx.tar
2018-03-30 20:09:02 +00:00
rm -rf $artifactsFolderMacOS /StartScript/
2017-12-31 18:53:16 +00:00
7z a -ttar $artifactsFolder /Lidarr.${ APPVEYOR_REPO_BRANCH } .${ APPVEYOR_BUILD_VERSION } .linux.tar $artifactsFolderLinux /*
7z a -tgzip $artifactsFolder /Lidarr.${ APPVEYOR_REPO_BRANCH } .${ APPVEYOR_BUILD_VERSION } .linux.tar.gz $artifactsFolder /Lidarr.${ APPVEYOR_REPO_BRANCH } .${ APPVEYOR_BUILD_VERSION } .linux.tar
rm -f $artifactsFolder /Lidarr.${ APPVEYOR_REPO_BRANCH } .${ APPVEYOR_BUILD_VERSION } .linux.tar
./setup/inno/ISCC.exe "./setup/lidarr.iss"
2018-04-21 21:18:13 +00:00
cp ./setup/output/Lidarr.*windows.exe $artifactsFolder /Lidarr.${ APPVEYOR_REPO_BRANCH } .${ APPVEYOR_BUILD_VERSION } .windows-installer.exe
2017-12-31 18:53:16 +00:00
}
PublishArtifacts