diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 50b131c..61c6c3a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,13 +34,19 @@ jobs: id: date run: echo "date=$(date +'%Y.%m.%d')" >> $GITHUB_OUTPUT - - name: Compute SHA256 checksum - id: checksum + - name: Compute SHA256 checksums + id: checksums run: | - FILE=$(ls MSVC_Offline_Setup_*.exe) - SUM=$(sha256sum "$FILE" | awk '{print $1}') - echo "file=$FILE" >> $GITHUB_OUTPUT - echo "sha256=$SUM" >> $GITHUB_OUTPUT + echo "body<> $GITHUB_OUTPUT + echo "Installer build for ${{ steps.date.outputs.date }}" >> $GITHUB_OUTPUT + echo "" >> $GITHUB_OUTPUT + for f in MSVC_Offline_Setup_*.exe; do + sum=$(sha256sum "$f" | awk '{print $1}') + echo "File: $f" >> $GITHUB_OUTPUT + echo "SHA256: $sum" >> $GITHUB_OUTPUT + echo "" >> $GITHUB_OUTPUT + done + echo "EOF" >> $GITHUB_OUTPUT - name: Create GitHub Release uses: softprops/action-gh-release@v2 diff --git a/LICENSE b/LICENSE index f6853aa..940f52a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2025 Calyx Hikari +Copyright (c) 2025 Hikari Calyx Tech Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md new file mode 100644 index 0000000..833182b --- /dev/null +++ b/README.md @@ -0,0 +1,41 @@ +# get.msvc.win Scripts +This repository served as host of MSVC.win Project. + +## Mirroring +We encourage you to mirror this website, you'll need to follow this requirement: + +- Replace `get.msvc.win` inside of all scripts into your own domain, and your own domain must use msvc as prefix, like `msvc.example.com` + - However, you should not replace the script inside of `$OEM$.zip` + +## Build +This repository also provide automatically generated offline installers. + +If you prefer build yourself, you can follow these procedures: + +### Windows (TBD) + +### Linux +We assume you're using Debian-based Linux distro (e.g. Ubuntu). + +1. Install required dependencies. +```bash +sudo apt-get install aria2 nsis curl +``` + +2. Build installer. +```bash +# Build installer for Windows XP or newer +curl https://get.msvc.win/generate.sh | bash + +# Build installer for Windows 7 or newer +curl https://get.msvc.win/generate.sh | bash -s - win7 + +# Build installer for Windows 10 or newer +curl https://get.msvc.win/generate.sh | bash -s - win10 + +# Build all 3 installers at once +curl https://get.msvc.win/generate_all.sh | bash +``` + +### Contribute +Do you think it needs any improvements? Feel free to create Pull Request. \ No newline at end of file