Commit graph

168 commits

Author SHA1 Message Date
schellap
b4b482006b Fix host name, debuggability and embed CRT 2016-01-14 12:06:18 -08:00
Sridhar Periyasamy
f2ac0d341b Merge pull request #836 from Sridhar-MS/msi-upgrade
Enable build-to-build major upgrades for MSI.
2016-01-14 11:36:03 -08:00
Andrew Stanton-Nurse
845f2c56e6 let RID detection do its thing
also:
* fix up pjvalidate to handle versionless deps
* fix up package-command-test
2016-01-14 09:06:13 -08:00
Zlatko Knezevic
1a7a971d4b Merge pull request #831 from blackdwarf/pkgosxfix
Adding more symlinks to postinstall
2016-01-13 16:33:14 -08:00
Sridhar Periyasamy
1308e27a74 Enable build-to-build major upgrades for MSI.
Encode the CLI version into MSI supported ProductVersion documented here -
https://msdn.microsoft.com/en-us/library/windows/desktop/aa370859(v=vs.85).aspx
Example: CLI Version - 1.0.0.000930 is encoded in MSI as 4.0.930

Prevent downgrading by failing installation with error message.
Also display the original CLI version in the ProductName.
2016-01-13 15:48:45 -08:00
Bryan
8fb2537e87 Remove -O option from curl invocation to ensure file is named consistently in test_package.bats 2016-01-13 14:34:16 -08:00
Bryan Thornbury
bfde94528c Enable Debian package upgrade tests. 2016-01-13 14:34:12 -08:00
Zlatko Knezevic
ccba7ac397 Adding more symlinks to postinstall
Adding symlinks for the following commands:

* dotnet-dnx
* csc

Also adding symlink for libclihost.dylib because it is needed
for the corehost.

Fix #823, #786
2016-01-13 13:52:24 -08:00
Zlatko Knezevic
4879d27d45 Merge pull request #830 from dotnet/linkdnx
link dotnet-dnx
2016-01-13 13:46:48 -08:00
Glenn Condron
a446bb220c link dotnet-dnx
link dotnet-dnx so that `dotnet restore` works when installed from pkg
2016-01-13 12:02:37 -08:00
Bryan
7011f9e604 update everything to DOTNET_CLI_VERSION
Some package_tool fixes
2016-01-13 02:22:53 -08:00
Bryan
797e436547 Package Tool Changes to support versioning changes.
1. Support CONFLICTS in debian packages
2. Associated Build Changes
3. Better cmd line option support in package_tool
2016-01-13 02:22:47 -08:00
Piotr Puszkiewicz
1e423d4f1b Merge pull request #798 from piotrpMSFT/piotrpMSFT/issue797/emptyNuget
Fix empty NuGets
2016-01-13 00:32:02 -08:00
piotrp
ce34927dfb Fixes issue #797
Builds all to-be-packaged assemblies, fixes packaging script.
2016-01-12 14:32:51 -08:00
Bryan Thornbury
93ce6af677 Add dotnet-build and dotnet-dnx to the debian package
Fixes #778
2016-01-11 18:17:29 -08:00
Krzysztof Wicher
acac8d0063 exclude symbols packages from upload 2016-01-11 13:53:47 -08:00
Livar
770026eef7 Merge pull request #734 from livarcocc/pack_input_folder
Adding an input folder param to dotnet pack.
2016-01-08 12:13:04 -08:00
Livar Cunha
ae7ec0427c Changing the input parameter to basepath to match nuget pack 2016-01-07 23:09:37 -08:00
Bryan Thornbury
51d5b5baef Merge pull request #731 from brthor/manpage_fixes
Fix Manpages in Debian Package
2016-01-07 13:30:15 -08:00
Livar Cunha
d2e06f0ebf Adding an input folder param to dotnet pack. If this param is present, pack does not do a build and instead tries to get the contents of the package from the input folder. Also refactored a bunch, separating the concerns in different classes and making just program just handle the arguments and invokes the builders. 2016-01-07 10:24:07 -08:00
Pavel Krymets
5216a9e839 Add DependencyModel to packages output 2016-01-07 09:34:00 -08:00
Bryan Thornbury
f77cdb9c36 Fix Iteration over bash arrays so manpages are packed properly in package_tool. 2016-01-06 21:19:23 +00:00
Piotr Puszkiewicz
4b217db9c0 Clean up build scripts
Decompose into self-contained granular components
Provide reasonable defaults for cross cutting concerns, allowing for independent execution of steps
Start unifying Windows/Bash architecture

fix Bash CI scripts

dockerbuild.sh _common.sh path

Add missing restore-packages.sh

Copy/paste issues

Quote $SOURCE
fix .gitignore

PR Feedback

Merge in @SridarMS's work to avoid redownloading DNX

enabling build of dotnet-build

merge in @SridharMS's CentOS changes

Enable building FSC

enable restoring specific subdirectories

Fix dnx version check

Add missed dependency

Fix pathing to tests

Match Linux build version to Windows, fixing linux tests as a side effect.

workaround for coreclr#2215

fix pathing issue

disable building in docker

BUILD_IN_DOCKER was set, somehow...

fix headers
2015-12-29 01:59:02 -08:00
Piotr Puszkiewicz
d1a257bff7 Merge pull request #625 from cdmihai/buildCommandWithSafetyChecks
Introduce --build-profile flag and precondition checking in the Build command
2015-12-28 10:46:27 -08:00
Enrico Sada
d52bc92155 add command dotnet-compile-fsc
used with "compilerName": "fsc" in project.json
2015-12-24 11:26:09 +01:00
Mihai Codoban
110b30ccdc Extract build from compile
Build becomes the new compile. It decides which project to compile and how. It checks for incremental preconditions
Compile's resonsibility is trimmed down to only knowing how to invoke the compiler on a project
2015-12-23 17:31:47 -08:00
Zlatko Knezevic
91990d3b37 Responding to PR feedback 2015-12-15 20:35:21 -08:00
Zlatko Knezevic
5ef832ee94 Fix the PKG permission issue and change the install location
A temporary fix for the PKG permission issue by using chmod -R 755 in the postinstall
script. Change the install location to remove the "cli" part of the path. Also
change the corehost to reflect this change.

Fixes #492 and #390
2015-12-15 15:24:50 -08:00
Krzysztof Wicher
9fe0df1a3f add dev to debian package name 2015-12-09 16:28:02 -08:00
Krzysztof Wicher
aed194acda add creating package for Microsoft.DotNet.ProjectModel.Loader 2015-12-09 00:53:00 -08:00
PiotrP
8fa642d424 PR Feedback 2015-12-08 10:54:03 -08:00
piotrp
568eb3aae7 dotnet-init --> dotnet new
Fixes issue #374
2015-12-08 10:37:31 -08:00
Piotr Puszkiewicz
88806eb7de Merge pull request #378 from krwq/ci_build_add_packaging
Step 1 to enable automatic nuget package upload
2015-12-07 10:04:30 -08:00
Krzysztof Wicher
413488f502 Create NuGet packages as part of the build 2015-12-04 18:03:57 -08:00
Bryan Thornbury
47ab17c447 Final Metadata Changes
Fixes #26

cc @blackdwarf
2015-12-03 11:14:16 -08:00
Bryan Thornbury
eba19b66da Add libcurl3 to debian dependencies
The debian package build usually detects dependencies of executables packaged inside, and adds those as dependencies of the package accordingly. It doesn't detect this for managed executables though, so libcurl3 needs to be added to support `dotnet restore` on Ubuntu.
2015-12-02 18:30:23 -08:00
Bryan Thornbury
96ffdf0fd6 Small fixes 2015-12-02 22:41:05 +00:00
Bryan Thornbury
c2d04d51b1 Changes to propagate errors in package build. 2015-12-02 22:11:31 +00:00
Krzysztof Wicher
ab9d1c48a8 fix according to feedback 2015-12-01 23:13:31 -08:00
Krzysztof Wicher
fcc6471618 nuget packages script for each project under src/ 2015-12-01 22:27:05 -08:00
Bryan Thornbury
861aae40c5 Add Clang Dependency for debian 2015-12-01 16:54:22 -08:00
Bryan Thornbury
69e52e8505 Add space after each newline in long_description
The long description format is somewhat fragile right now. Changes will need to be made to the package tool to handle this better because each line in the long description needs a leading space.
2015-12-01 13:21:42 -08:00
Bryan Thornbury
22b1b4905a Remove newline characters from long_description
Remove newlines
2015-12-01 11:50:33 -08:00
shahid-pk
e02c8e6f81 rename resgen to dotnet-resgen 2015-12-01 22:12:04 +05:00
PiotrP
a84a56a152 PR Feedback 2015-11-30 17:30:25 -08:00
piotrp
407c933480 add dotnet-test 2015-11-30 17:28:03 -08:00
Bryan Thornbury
ce4ddf39d3 Remove root debian_config.json and update descriptions 2015-11-30 12:10:28 -08:00
Sridhar Periyasamy
2ad820d983 Merge pull request #323 from Sridhar-MS/msi-unittests
Unit tests for Dotnet MSI
2015-11-26 11:26:17 -08:00
Bryan Thornbury
65d0388f5a Merge pull request #318 from brthor/docker_build_user
Set Docker Internal UID to Host UID, Remove Postbuild step
2015-11-25 13:37:43 -08:00
Zlatko Knezevic
9aa40106e2 Merge pull request #299 from blackdwarf/fix-1
Add a temporary step to cp corehost to /usr/local/bin
2015-11-25 11:00:22 -08:00
Sridhar Periyasamy
e131be5aaa Unit tests for Dotnet MSI
- Needs a clean machine without dotnet MSI installed for the tests to run.
- Needs admin privileges to run. Else test script exits silently.
- These xunit based tests run on Netfx46.

For now these tests are disabled until I figure out the right way to run
them in the CI machines.
2015-11-24 17:48:58 -08:00
Bryan Thornbury
b122190cd8 Set Docker Internal UID to Host UID, Remove Postbuild step
These changes will use docker's new Dockerfile Arguments to
pass the Host User ID to the docker container at build time.
This allows the docker container to set it's internal user
to match that of the host. When using shared volumes between
the host and container, this prevents files created in the
container from being owned by root.

This will solve our problem of needing a cleanup step after
every ubuntu CI run.
2015-11-25 00:33:53 +00:00
Zlatko Knezevic
9d9f141945 Adding dotnet-init to symlink list 2015-11-23 15:45:56 -08:00
Zlatko Knezevic
c91eb06b6e Add a temporary step to cp corehost to /usr/local/bin
This is a temporary fix to unblock dotnet compile on OS X. It copies the corehost
from the install location to /usr/local/bin in postinstall.

Fix 294
2015-11-23 12:21:26 -08:00
Sridhar Periyasamy
3f00cfbeb9 x64 installer now creates registry keys in both x64 and Wow32 hives.
This is required to enable 32-bit MSIs (like VS) that need to access the
registry key on a 64-bit OS. Refer #250
2015-11-20 18:32:58 -08:00
Sridhar Periyasamy
040e7f5d84 Change the install path, registry key path and environment component.
Install path is now %ProgramFiles%\dotnet
Registry root is now "HKLM\SOFTWARE\dotnet\Setup"
Env variables setup is now associated with a versioned component - the
registry keys. Environment resource cannot serve as a keypath hence it is
coupled with a registry key which is the key path for the component.
2015-11-20 17:44:48 -08:00
Bryan Thornbury
3adc3ed425 Fix permissions of moved package files 2015-11-19 16:29:31 -08:00
Bryan Thornbury
cefd1cbcfa Move Debian Package Tools to packaging folder 2015-11-19 14:45:20 -08:00
Zlatko Knezevic
f0f773f92c Add correct permissions and symlinks to PKG generation
Add proper symlinks to the postinstall script. Also, the permissions of the
resulting directory post-install were wrong (set to root:wheel). This is fixed
by using the --ownership preserve switch to pkgbuild.

Fix #247
2015-11-18 12:59:03 -08:00
Sridhar Periyasamy
c79f48a745 Add missing wxs files for building MSI. 2015-11-17 20:53:49 -08:00
Sridhar Periyasamy
57b1b5b290 Changes to dotnet MSI authoring based on netfx mtpack authoring.
- Added reg keys to detect installation.
- Added dependency provider keys
2015-11-17 20:32:02 -08:00
Sridhar Periyasamy
fb61e69a79 First pass at building Windows MSI for the dotnet CLI repo.
- Use the heat tool to harvest the stage2 dir and create install-files.wxs
- dotnet.wxs contains the XML code which is constant across builds for an MSI.
- Use Candle and Light to generate the MSI from install-files.wxs and dotnet.wxs.

Default Install Location - %ProgramFiles%/dotnet.
Adds <InstallRoot>\bin %PATH%
Creates %DOTNET_HOME% pointing to <InstallRoot>
2015-11-17 00:39:46 -08:00
PiotrP
e839b4debb Update Copyright headers in all source files. 2015-11-16 19:47:43 -08:00
Andrew Stanton-Nurse
4cc15b1246 restructure the output layout
also reorganize the scripts folder
2015-11-16 09:44:00 -08:00
glennc
7ae33f3154 fix permissions for installed files. 2015-11-06 15:58:55 -08:00
glennc
5624e37c3e Call publish for pkg 2015-11-06 12:48:34 -08:00
glennc
2dd124c635 Remove conclusion, modify welcome. Provide versions to package builds 2015-11-06 12:02:15 -08:00
glennc
713b7a1061 Initial commit of pkg authoring 2015-11-06 12:02:15 -08:00