Skip to content

Commit 2037025

Browse files
cfergeaupraveenkumar
authored andcommitted
macos: pkg: Move all .pkg-related files to packaging/darwin
Some files are in packaging/ at the moment which is confusing as there's also a packaging/darwin directory. This commit groups everything under that darwin/ dir.
1 parent afdb7bc commit 2037025

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ clean_macos_package:
151151
rm -f packaging/darwin/Distribution
152152
rm -f packaging/darwin/Resources/welcome.html
153153
rm -f packaging/darwin/scripts/postinstall
154-
rm -rf packaging/root/
154+
rm -rf packaging/darwin/root/
155155

156156
clean_windows_msi:
157157
rm -rf packaging/windows/msi
@@ -313,28 +313,28 @@ macos-universal-binary: macos-release-binary $(TOOLS_BINDIR)/makefat
313313
cd $(BUILD_DIR) && "$(TOOLS_BINDIR)"/makefat macos-universal/crc macos-amd64/crc macos-arm64/crc
314314

315315
packagedir: clean embed-download-darwin macos-universal-binary
316-
echo -n $(CRC_VERSION) > packaging/VERSION
316+
echo -n $(CRC_VERSION) > packaging/darwin/VERSION
317317
sed -e 's/__VERSION__/'$(CRC_VERSION)'/g' -e 's@__INSTALL_PATH__@$(MACOS_INSTALL_PATH)@g' packaging/darwin/Distribution.in >packaging/darwin/Distribution
318318
sed -e 's/__VERSION__/'$(CRC_VERSION)'/g' -e 's@__INSTALL_PATH__@$(MACOS_INSTALL_PATH)@g' packaging/darwin/welcome.html.in >packaging/darwin/Resources/welcome.html
319319
sed -e 's/__VERSION__/'$(CRC_VERSION)'/g' -e 's@__INSTALL_PATH__@$(MACOS_INSTALL_PATH)@g' packaging/darwin/postinstall.in >packaging/darwin/scripts/postinstall
320320
chmod 755 packaging/darwin/scripts/postinstall
321-
mkdir -p packaging/root/Applications
321+
mkdir -p packaging/darwin/root/Applications
322322

323-
mv $(EMBED_DOWNLOAD_DIR)/vf.entitlements packaging/vfkit.entitlements
323+
mv $(EMBED_DOWNLOAD_DIR)/vf.entitlements packaging/darwin/vfkit.entitlements
324324
tar -C $(EMBED_DOWNLOAD_DIR) -xvzf $(EMBED_DOWNLOAD_DIR)/$(TRAY_TARBALL)
325325
rm $(EMBED_DOWNLOAD_DIR)/$(TRAY_TARBALL)
326-
mv $(EMBED_DOWNLOAD_DIR)/crc-tray-darwin-universal/crc-tray.app packaging/root/Applications/Red\ Hat\ OpenShift\ Local.app
326+
mv $(EMBED_DOWNLOAD_DIR)/crc-tray-darwin-universal/crc-tray.app packaging/darwin/root/Applications/Red\ Hat\ OpenShift\ Local.app
327327
rm -fr $(EMBED_DOWNLOAD_DIR)/crc-tray-darwin-universal
328328

329-
mv $(EMBED_DOWNLOAD_DIR)/* packaging/root/"$(MACOS_INSTALL_PATH)"
330-
cp $(BUILD_DIR)/macos-universal/crc packaging/root/"$(MACOS_INSTALL_PATH)"
329+
mv $(EMBED_DOWNLOAD_DIR)/* packaging/darwin/root/"$(MACOS_INSTALL_PATH)"
330+
cp $(BUILD_DIR)/macos-universal/crc packaging/darwin/root/"$(MACOS_INSTALL_PATH)"
331331
cp LICENSE packaging/darwin/Resources/LICENSE.txt
332332

333333
$(BUILD_DIR)/macos-universal/crc-macos-installer.pkg: packagedir
334-
./packaging/package.sh $(@D)
334+
./packaging/darwin/package.sh $(@D)
335335

336336
$(BUILD_DIR)/macos-universal/crc-macos-installer.tar: packagedir
337-
tar -cvf $@ ./packaging
337+
tar -cvf $@ ./packaging/darwin
338338
cd $(@D) && sha256sum $(@F)>$(@F).sha256sum
339339

340340
%.spec: %.spec.in $(TOOLS_BINDIR)/gomod2rpmdeps

packaging/.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
root/
21
/components.plist
2+
/darwin/root/
33
/darwin/Distribution
44
/darwin/Resources/LICENSE.txt
55
/darwin/Resources/welcome.html
66
/darwin/scripts/postinstall
7-
/VERSION
7+
/darwin/vfkit.entitlements
8+
/darwin/VERSION
9+
/darwin/*.pkg
810
/windows/msi/
911
/windows/product.wxs
10-
vfkit.entitlements
11-
/*.pkg

packaging/package.sh renamed to packaging/darwin/packaging.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ signAppBundle "${BASEDIR}/root/Applications/Red Hat OpenShift Local.app"
5656
sudo chmod +sx "${binDir}/crc-admin-helper-darwin"
5757

5858
pkgbuild --identifier com.redhat.crc --version ${version} \
59-
--scripts "${BASEDIR}/darwin/scripts" \
59+
--scripts "${BASEDIR}/scripts" \
6060
--root "${BASEDIR}/root" \
6161
--install-location / \
6262
--component-plist "${BASEDIR}/components.plist" \
6363
"${OUTPUT}/crc.pkg"
6464

65-
productbuild --distribution "${BASEDIR}/darwin/Distribution" \
66-
--resources "${BASEDIR}/darwin/Resources" \
65+
productbuild --distribution "${BASEDIR}/Distribution" \
66+
--resources "${BASEDIR}/Resources" \
6767
--package-path "${OUTPUT}" \
6868
"${OUTPUT}/crc-unsigned.pkg"
6969
rm "${OUTPUT}/crc.pkg"

0 commit comments

Comments
 (0)