mirror of https://github.com/abpframework/abp.git
2 changed files with 222 additions and 0 deletions
@ -0,0 +1,192 @@ |
|||
#!/bin/bash |
|||
|
|||
# Paths |
|||
packFolder="$(pwd)" |
|||
rootFolder="$(dirname "$packFolder")" |
|||
|
|||
# List of solutions |
|||
solutions=( |
|||
"framework" |
|||
"modules/users" |
|||
"modules/setting-management" |
|||
"modules/permission-management" |
|||
"modules/tenant-management" |
|||
"modules/identity" |
|||
"modules/identityserver" |
|||
"modules/account" |
|||
"modules/audit-logging" |
|||
"modules/background-jobs" |
|||
"modules/blogging" |
|||
"modules/docs" |
|||
"abp_io" |
|||
) |
|||
|
|||
# List of projects |
|||
projects=( |
|||
"framework/src/Volo.Abp.ApiVersioning.Abstractions" |
|||
"framework/src/Volo.Abp.AspNetCore" |
|||
"framework/src/Volo.Abp.AspNetCore.Authentication.OAuth" |
|||
"framework/src/Volo.Abp.AspNetCore.MultiTenancy" |
|||
"framework/src/Volo.Abp.AspNetCore.Mvc" |
|||
"framework/src/Volo.Abp.AspNetCore.Mvc.Contracts" |
|||
"framework/src/Volo.Abp.AspNetCore.Mvc.Client" |
|||
"framework/src/Volo.Abp.AspNetCore.Mvc.UI" |
|||
"framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bootstrap" |
|||
"framework/src/Volo.Abp.AspNetCore.Mvc.UI.Bundling" |
|||
"framework/src/Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy" |
|||
"framework/src/Volo.Abp.AspNetCore.Mvc.UI.Packages" |
|||
"framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic" |
|||
"framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared" |
|||
"framework/src/Volo.Abp.AspNetCore.TestBase" |
|||
|
|||
"framework/src/Volo.Abp.Auditing" |
|||
"framework/src/Volo.Abp.Authorization" |
|||
"framework/src/Volo.Abp.AutoFac" |
|||
"framework/src/Volo.Abp.AutoMapper" |
|||
"framework/src/Volo.Abp.BackgroundJobs" |
|||
"framework/src/Volo.Abp.BackgroundJobs.Abstractions" |
|||
"framework/src/Volo.Abp.BackgroundJobs.HangFire" |
|||
"framework/src/Volo.Abp.BackgroundJobs.RabbitMQ" |
|||
"framework/src/Volo.Abp.BackgroundWorkers" |
|||
"framework/src/Volo.Abp.Caching" |
|||
"framework/src/Volo.Abp.Castle.Core" |
|||
"framework/src/Volo.Abp.Core" |
|||
"framework/src/Volo.Abp.Data" |
|||
"framework/src/Volo.Abp.Ddd.Application" |
|||
"framework/src/Volo.Abp.Ddd.Domain" |
|||
"framework/src/Volo.Abp.Emailing" |
|||
"framework/src/Volo.Abp.EntityFrameworkCore" |
|||
"framework/src/Volo.Abp.EntityFrameworkCore.SqlServer" |
|||
"framework/src/Volo.Abp.EntityFrameworkCore.MySQL" |
|||
"framework/src/Volo.Abp.EntityFrameworkCore.PostgreSql" |
|||
"framework/src/Volo.Abp.EventBus" |
|||
"framework/src/Volo.Abp.EventBus.RabbitMQ" |
|||
"framework/src/Volo.Abp.Features" |
|||
"framework/src/Volo.Abp.Guids" |
|||
"framework/src/Volo.Abp.HangFire" |
|||
"framework/src/Volo.Abp.Http" |
|||
"framework/src/Volo.Abp.Http.Abstractions" |
|||
"framework/src/Volo.Abp.Http.Client" |
|||
"framework/src/Volo.Abp.Http.Client.IdentityModel" |
|||
"framework/src/Volo.Abp.IdentityModel" |
|||
"framework/src/Volo.Abp.Json" |
|||
"framework/src/Volo.Abp.Localization" |
|||
"framework/src/Volo.Abp.Localization.Abstractions" |
|||
"framework/src/Volo.Abp.MemoryDb" |
|||
"framework/src/Volo.Abp.MongoDB" |
|||
"framework/src/Volo.Abp.MultiTenancy.Abstractions" |
|||
"framework/src/Volo.Abp.ObjectMapping" |
|||
"framework/src/Volo.Abp.RabbitMQ" |
|||
"framework/src/Volo.Abp.Security" |
|||
"framework/src/Volo.Abp.Serialization" |
|||
"framework/src/Volo.Abp.Settings" |
|||
"framework/src/Volo.Abp.Sms" |
|||
"framework/src/Volo.Abp.TestBase" |
|||
"framework/src/Volo.Abp.Threading" |
|||
"framework/src/Volo.Abp.Timing" |
|||
"framework/src/Volo.Abp.UI" |
|||
"framework/src/Volo.Abp.UI.Navigation" |
|||
"framework/src/Volo.Abp.Uow" |
|||
"framework/src/Volo.Abp.Validation" |
|||
"framework/src/Volo.Abp.VirtualFileSystem" |
|||
|
|||
# modules/users |
|||
"modules/users/src/Volo.Abp.Users.Abstractions" |
|||
"modules/users/src/Volo.Abp.Users.Domain" |
|||
"modules/users/src/Volo.Abp.Users.Domain.Shared" |
|||
"modules/users/src/Volo.Abp.Users.EntityFrameworkCore" |
|||
"modules/users/src/Volo.Abp.Users.MongoDB" |
|||
|
|||
# modules/setting-management |
|||
"modules/setting-management/src/Volo.Abp.SettingManagement.Domain.Shared" |
|||
"modules/setting-management/src/Volo.Abp.SettingManagement.Domain" |
|||
"modules/setting-management/src/Volo.Abp.SettingManagement.EntityFrameworkCore" |
|||
"modules/setting-management/src/Volo.Abp.SettingManagement.MongoDB" |
|||
"modules/setting-management/src/Volo.Abp.SettingManagement.Web" |
|||
|
|||
# modules/permission-management |
|||
"modules/permission-management/src/Volo.Abp.PermissionManagement.Domain.Shared" |
|||
"modules/permission-management/src/Volo.Abp.PermissionManagement.Domain" |
|||
"modules/permission-management/src/Volo.Abp.PermissionManagement.Application.Contracts" |
|||
"modules/permission-management/src/Volo.Abp.PermissionManagement.Application" |
|||
"modules/permission-management/src/Volo.Abp.PermissionManagement.EntityFrameworkCore" |
|||
"modules/permission-management/src/Volo.Abp.PermissionManagement.MongoDB" |
|||
"modules/permission-management/src/Volo.Abp.PermissionManagement.HttpApi" |
|||
"modules/permission-management/src/Volo.Abp.PermissionManagement.HttpApi.Client" |
|||
"modules/permission-management/src/Volo.Abp.PermissionManagement.Web" |
|||
|
|||
# modules/tenant-management |
|||
"modules/tenant-management/src/Volo.Abp.TenantManagement.Domain.Shared" |
|||
"modules/tenant-management/src/Volo.Abp.TenantManagement.Domain" |
|||
"modules/tenant-management/src/Volo.Abp.TenantManagement.Application.Contracts" |
|||
"modules/tenant-management/src/Volo.Abp.TenantManagement.Application" |
|||
"modules/tenant-management/src/Volo.Abp.TenantManagement.EntityFrameworkCore" |
|||
"modules/tenant-management/src/Volo.Abp.TenantManagement.MongoDB" |
|||
"modules/tenant-management/src/Volo.Abp.TenantManagement.HttpApi" |
|||
"modules/tenant-management/src/Volo.Abp.TenantManagement.HttpApi.Client" |
|||
"modules/tenant-management/src/Volo.Abp.TenantManagement.Web" |
|||
|
|||
# modules/identity |
|||
"modules/identity/src/Volo.Abp.Identity.AspNetCore" |
|||
|
|||
"modules/identity/src/Volo.Abp.Identity.Application" |
|||
"modules/identity/src/Volo.Abp.Identity.Application.Contracts" |
|||
"modules/identity/src/Volo.Abp.Identity.Domain" |
|||
"modules/identity/src/Volo.Abp.Identity.Domain.Shared" |
|||
"modules/identity/src/Volo.Abp.Identity.EntityFrameworkCore" |
|||
"modules/identity/src/Volo.Abp.Identity.MongoDB" |
|||
"modules/identity/src/Volo.Abp.Identity.HttpApi" |
|||
"modules/identity/src/Volo.Abp.Identity.HttpApi.Client" |
|||
"modules/identity/src/Volo.Abp.Identity.Web" |
|||
|
|||
"modules/identity/src/Volo.Abp.PermissionManagement.Domain.Identity" |
|||
|
|||
# modules/identityserver |
|||
"modules/identityserver/src/Volo.Abp.IdentityServer.Domain.Shared" |
|||
"modules/identityserver/src/Volo.Abp.IdentityServer.Domain" |
|||
"modules/identityserver/src/Volo.Abp.PermissionManagement.Domain.IdentityServer" |
|||
"modules/identityserver/src/Volo.Abp.IdentityServer.EntityFrameworkCore" |
|||
|
|||
"modules/identityserver/src/Volo.Abp.IdentityServer.MongoDB" |
|||
|
|||
# modules/account |
|||
"modules/account/src/Volo.Abp.Account.Web" |
|||
"modules/account/src/Volo.Abp.Account.Web.IdentityServer" |
|||
|
|||
# modules/docs |
|||
"modules/docs/src/Volo.Docs.Application" |
|||
"modules/docs/src/Volo.Docs.Application.Contracts" |
|||
"modules/docs/src/Volo.Docs.Domain" |
|||
"modules/docs/src/Volo.Docs.Domain.Shared" |
|||
"modules/docs/src/Volo.Docs.EntityFrameworkCore" |
|||
"modules/docs/src/Volo.Docs.HttpApi" |
|||
"modules/docs/src/Volo.Docs.HttpApi.Client" |
|||
"modules/docs/src/Volo.Docs.Web" |
|||
|
|||
|
|||
# modules/blogging |
|||
"modules/blogging/src/Volo.Blogging.Application" |
|||
"modules/blogging/src/Volo.Blogging.Application.Contracts" |
|||
"modules/blogging/src/Volo.Blogging.Domain" |
|||
"modules/blogging/src/Volo.Blogging.Domain.Shared" |
|||
"modules/blogging/src/Volo.Blogging.EntityFrameworkCore" |
|||
"modules/blogging/src/Volo.Blogging.MongoDB" |
|||
"modules/blogging/src/Volo.Blogging.HttpApi" |
|||
"modules/blogging/src/Volo.Blogging.HttpApi.Client" |
|||
"modules/blogging/src/Volo.Blogging.Web" |
|||
|
|||
# modules/audit-logging |
|||
"modules/audit-logging/src/Volo.Abp.AuditLogging.Domain.Shared" |
|||
"modules/audit-logging/src/Volo.Abp.AuditLogging.Domain" |
|||
"modules/audit-logging/src/Volo.Abp.AuditLogging.EntityFrameworkCore" |
|||
"modules/audit-logging/src/Volo.Abp.AuditLogging.MongoDB" |
|||
|
|||
# modules/background-jobs |
|||
"modules/background-jobs/src/Volo.Abp.BackgroundJobs.Domain.Shared" |
|||
"modules/background-jobs/src/Volo.Abp.BackgroundJobs.Domain" |
|||
"modules/background-jobs/src/Volo.Abp.BackgroundJobs.EntityFrameworkCore" |
|||
"modules/background-jobs/src/Volo.Abp.BackgroundJobs.MongoDB" |
|||
|
|||
# abp_io/SolutionTemplating |
|||
"abp_io/src/Volo.Utils.SolutionTemplating" |
|||
) |
|||
@ -0,0 +1,30 @@ |
|||
#!/bin/bash |
|||
. ./common.sh |
|||
|
|||
# Rebuild all solutions |
|||
for solution in "${solutions[@]}" |
|||
do |
|||
solutionFolder="$rootFolder/$solution" |
|||
cd "$solutionFolder" \ |
|||
&& dotnet restore |
|||
done |
|||
|
|||
# Create all packages |
|||
for project in "${projects[@]}" |
|||
do |
|||
projectFolder="$rootFolder/$project" |
|||
|
|||
# Create nuget pack |
|||
cd "$projectFolder" |
|||
rm -rf "$projectFolder/bin/Release" \ |
|||
& dotnet pack --no-restore -c Release -p:SourceLinkCreate=true -o "$packFolder" |
|||
|
|||
if [ $? -ne 0 ] |
|||
then |
|||
echo "Packaging failed for the project: $projectFolder" |
|||
exit 1 |
|||
fi |
|||
done |
|||
|
|||
# Go back to the pack folder |
|||
cd "$packFolder" |
|||
Loading…
Reference in new issue