mirror of
				https://github.com/jakeswenson/BitBetter.git
				synced 2025-10-31 12:53:25 +00:00 
			
		
		
		
	Merge branch 'master' into license-update
This commit is contained in:
		
						commit
						cef7c632d6
					
				
							
								
								
									
										2
									
								
								build.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								build.sh
									
									
									
									
									
								
							|  | @ -13,7 +13,7 @@ echo "Building BitBetter for BitWarden version $BW_VERSION" | ||||||
| 
 | 
 | ||||||
| cp "$DIR/.keys/cert.cert" "$DIR/src/bitBetter/.keys" | cp "$DIR/.keys/cert.cert" "$DIR/src/bitBetter/.keys" | ||||||
| 
 | 
 | ||||||
| docker run --rm -v "$DIR/src/bitBetter:/bitBetter" -w=/bitBetter mcr.microsoft.com/dotnet/sdk:6.0 sh build.sh | docker run --rm -v "$DIR/src/bitBetter:/bitBetter" -w=/bitBetter mcr.microsoft.com/dotnet/sdk:8.0 sh build.sh | ||||||
| 
 | 
 | ||||||
| docker build --no-cache --build-arg BITWARDEN_TAG=bitwarden/api:$BW_VERSION --label com.bitwarden.product="bitbetter" -t bitbetter/api "$DIR/src/bitBetter" # --squash | docker build --no-cache --build-arg BITWARDEN_TAG=bitwarden/api:$BW_VERSION --label com.bitwarden.product="bitbetter" -t bitbetter/api "$DIR/src/bitBetter" # --squash | ||||||
| docker build --no-cache --build-arg BITWARDEN_TAG=bitwarden/identity:$BW_VERSION --label com.bitwarden.product="bitbetter" -t bitbetter/identity "$DIR/src/bitBetter" # --squash | docker build --no-cache --build-arg BITWARDEN_TAG=bitwarden/identity:$BW_VERSION --label com.bitwarden.product="bitbetter" -t bitbetter/identity "$DIR/src/bitBetter" # --squash | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| ARG BITWARDEN_TAG | ARG BITWARDEN_TAG | ||||||
| FROM ${BITWARDEN_TAG} | FROM ${BITWARDEN_TAG} | ||||||
| 
 | 
 | ||||||
| COPY bin/Debug/netcoreapp6.0/publish/* /bitBetter/ | COPY bin/Release/net8.0/publish/* /bitBetter/ | ||||||
| COPY ./.keys/cert.cert /newLicensing.cer | COPY ./.keys/cert.cert /newLicensing.cer | ||||||
| 
 | 
 | ||||||
| RUN set -e; set -x; \ | RUN set -e; set -x; \ | ||||||
|  |  | ||||||
|  | @ -2,7 +2,7 @@ | ||||||
| 
 | 
 | ||||||
|   <PropertyGroup> |   <PropertyGroup> | ||||||
|     <OutputType>Exe</OutputType> |     <OutputType>Exe</OutputType> | ||||||
|     <TargetFramework>netcoreapp6.0</TargetFramework> |     <TargetFramework>net8.0</TargetFramework> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
| 
 | 
 | ||||||
|   <ItemGroup> |   <ItemGroup> | ||||||
|  |  | ||||||
|  | @ -1,4 +1,4 @@ | ||||||
| FROM mcr.microsoft.com/dotnet/sdk:6.0 as build | FROM mcr.microsoft.com/dotnet/sdk:8.0 as build | ||||||
| 
 | 
 | ||||||
| WORKDIR /licenseGen | WORKDIR /licenseGen | ||||||
| 
 | 
 | ||||||
|  | @ -12,6 +12,6 @@ RUN set -e; set -x; \ | ||||||
| 
 | 
 | ||||||
| FROM bitbetter/api | FROM bitbetter/api | ||||||
| 
 | 
 | ||||||
| COPY --from=build /licenseGen/bin/Debug/netcoreapp6.0/publish/* /app/ | COPY --from=build /licenseGen/bin/Release/net8.0/publish/* /app/ | ||||||
| 
 | 
 | ||||||
| ENTRYPOINT [ "dotnet", "/app/licenseGen.dll", "--core", "/app/Core.dll", "--cert", "/cert.pfx" ] | ENTRYPOINT [ "dotnet", "/app/licenseGen.dll", "--core", "/app/Core.dll", "--cert", "/cert.pfx" ] | ||||||
|  |  | ||||||
|  | @ -398,7 +398,7 @@ namespace bitwardenSelfLicensor | ||||||
| 
 | 
 | ||||||
|             var type = core.GetType("Bit.Core.Models.Business.OrganizationLicense"); |             var type = core.GetType("Bit.Core.Models.Business.OrganizationLicense"); | ||||||
|             var licenseTypeEnum = core.GetType("Bit.Core.Enums.LicenseType"); |             var licenseTypeEnum = core.GetType("Bit.Core.Enums.LicenseType"); | ||||||
|             var planTypeEnum = core.GetType("Bit.Core.Enums.PlanType"); |             var planTypeEnum = core.GetType("Bit.Core.Billing.Enums.PlanType"); | ||||||
| 
 | 
 | ||||||
|             var license = Activator.CreateInstance(type); |             var license = Activator.CreateInstance(type); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -2,7 +2,7 @@ | ||||||
| 
 | 
 | ||||||
|   <PropertyGroup> |   <PropertyGroup> | ||||||
|     <OutputType>Exe</OutputType> |     <OutputType>Exe</OutputType> | ||||||
|     <TargetFramework>netcoreapp6.0</TargetFramework> |     <TargetFramework>net8.0</TargetFramework> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
| 
 | 
 | ||||||
|   <ItemGroup> |   <ItemGroup> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user