Skip to content

Commit

Permalink
Merge pull request #259 from HavenDV/patch-1
Browse files Browse the repository at this point in the history
fix: Use dotnet workload install --sdk-version instead global.json in scripts.
  • Loading branch information
sung-su authored Oct 19, 2023
2 parents f13fce8 + abaa909 commit 48f34da
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions workload/scripts/workload-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,21 +207,10 @@ function install_tizenworkload() {
fi

# Install workload packs.
if [ -f global.json ]; then
CACHE_GLOBAL_JSON="true"
mv global.json global.json.bak
else
CACHE_GLOBAL_JSON="false"
fi
dotnet new globaljson --sdk-version $DOTNET_VERSION
$DOTNET_INSTALL_DIR/dotnet workload install tizen --skip-manifest-update
$DOTNET_INSTALL_DIR/dotnet workload install tizen --sdk-version $DOTNET_VERSION --skip-manifest-update

# Clean-up
rm -fr $TMPDIR
rm global.json
if [[ "$CACHE_GLOBAL_JSON" == "true" ]]; then
mv global.json.bak global.json
fi

echo "Done installing Tizen workload $MANIFEST_VERSION"
echo ""
Expand Down

0 comments on commit 48f34da

Please sign in to comment.