-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(chocolatey-community#45) Replace au references with chocolatey-au wh…
…ere appropriate
- Loading branch information
1 parent
fbde190
commit da099c1
Showing
6 changed files
with
28 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
## Automatic Folder | ||
|
||
This is where you put your Chocolatey packages that are automatically packaged up by [AU](https://chocolatey.org/packages/au). | ||
This is where you put your Chocolatey packages that are automatically packaged up by [chocolatey-au](https://github.com/chocolatey-community/chocolatey-au). | ||
|
||
Execute `update_all.ps1` in the repository root to run [AU](https://chocolatey.org/packages/au) updater with default options. | ||
Execute `update_all.ps1` in the repository root to run [chocolatey-au](https://github.com/chocolatey-community/chocolatey-au) updater with default options. | ||
|
||
To fully setup all the features ensure you perform the steps in the [setup/README.md](https://github.com/chocolatey/chocolatey-packages-template/blob/master/setup/README.md#automatic-updater-au) | ||
To fully setup all the features ensure you perform the steps in the [setup/README.md](https://github.com/chocolatey/chocolatey-packages-template/blob/master/setup/README.md) | ||
|
||
To get the packages that implement AU updater run `Get-AUPackages` or `lsau` in this directory. | ||
To get the packages that implement chocolatey-au updater run `Get-AUPackages` or `lsau` in this directory. | ||
|
||
**NOTE:** Ensure when you are creating packages for AU, you don't use `--auto` as the packaging files should be normal packages. AU doesn't need the tokens to do replacement. | ||
**NOTE:** Ensure when you are creating packages for chocolatey-au, you don't use `--auto` as the packaging files should be normal packages. chocolatey-au doesn't need the tokens to do replacement. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# Setup Automatic Updater (AU) | ||
# Setup Automatic Updater (chocolatey-au) | ||
|
||
* Ensure you have the [Chocolatey PowerShell profile](https://chocolatey.org/docs/troubleshooting#why-does-choco-intab-not-work-for-me) installed. | ||
* Ensure you have the [Chocolatey PowerShell profile](https://docs.chocolatey.org/en-us/troubleshooting#why-does-choco-tab-not-work-for-me) installed. | ||
* Open `au_setup.ps1` in an editor and review it. | ||
* Run PowerShell `5.x` as Administrator (AU framework supports PowerShell 6+ but this setup does not) | ||
* Run PowerShell `5.x` as Administrator (chocolatey-au framework supports PowerShell 6+ but this setup does not) | ||
* Run `au_setup.ps1`. | ||
* Configure AU [plugins](https://github.com/majkinetor/au/blob/master/Plugins.md). | ||
* Configure [AppVeyor](https://github.com/majkinetor/au/wiki/AppVeyor). | ||
* Configure [local run](https://github.com/majkinetor/au/wiki#local-run). | ||
* Configure chocolatey-au [plugins](https://github.com/chocolatey-community/chocolatey-au/blob/master/Plugins.md). | ||
* Configure [AppVeyor](https://github.com/chocolatey-community/chocolatey-au/wiki/AppVeyor). | ||
* Configure [local run](https://github.com/chocolatey-community/chocolatey-au/wiki#local-run). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
# WMF 3/4 only | ||
# upgrade powershell | ||
if ($PSVersionTable.PSVersion -lt $(New-Object System.Version("5.0.0.0"))) { | ||
choco install dotnet4.5.1 -y | ||
choco upgrade powershell-packagemanagement --ignore-dependencies -y | ||
choco install powershell -y | ||
} | ||
|
||
$refreshenv = Get-Command refreshenv -ea SilentlyContinue | ||
if ($refreshenv -ne $null -and $refreshenv.CommandType -ne 'Application') { | ||
refreshenv # You need the Chocolatey profile installed for this to work properly (Choco v0.9.10.0+). | ||
$UpdateSessionEnvironment = Get-Command Update-SessionEnvironment -ea SilentlyContinue | ||
if ($UpdateSessionEnvironment -ne $null -and $UpdateSessionEnvironment.CommandType -ne 'Application') { | ||
Update-SessionEnvironment # You need the Chocolatey profile installed for this to work properly (Choco v0.9.10.0+). | ||
} else { | ||
Write-Warning "We detected that you do not have the Chocolatey PowerShell profile installed, which is necessary for 'refreshenv' to work in PowerShell." | ||
Write-Warning "We detected that you do not have the Chocolatey PowerShell profile installed, which is necessary for 'Update-SessionEnvironment' to work in PowerShell." | ||
} | ||
|
||
Install-PackageProvider -Name NuGet -Force | ||
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | ||
Install-Module au -Scope AllUsers | ||
Get-Module au -ListAvailable | select Name, Version | ||
# Switch to this once chocolatey-au is released | ||
# choco install chocolatey-au -y | ||
|
||
choco install git.portable -y | ||
# Required as git is installed to Get-ToolsLocation and is added to the PATH | ||
Update-SessionEnvironment | ||
git clone -q https://github.com/chocolatey-community/chocolatey-au.git $Env:TEMP/chocolatey-au | ||
. "$Env:TEMP/chocolatey-au/scripts/Install-AU.ps1" "master" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters