forked from 1b-agent/opencadstudio-upstream
chore: rename H7CAD to Open CAD Studio
Joining the OpenAEC Foundation (open-aec.com). Crate/struct become OpenCADStudio, user-facing strings use the spaced "Open CAD Studio" form, repo URLs point to HakanSeven12/open-cad-studio. Logo (window icon + assets/logo.svg) redrawn with OCS initials. Drop examples/ binaries — unused. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
1 parent
e2bc8c29eb
commit
ef1f9a08d6
57 files changed
+159
-1301
No files matched your search
@@ -34,10 +34,10 @@ jobs:
|
||||
mkdir -p AppDir/usr/bin
|
||||
mkdir -p AppDir/usr/share/applications
|
||||
mkdir -p AppDir/usr/share/icons/hicolor/256x256/apps
|
||||
cp target/release/H7CAD AppDir/usr/bin/H7CAD
|
||||
cp packaging/H7CAD.desktop AppDir/usr/share/applications/io.github.HakanSeven12.H7CAD.desktop
|
||||
cp target/release/OpenCADStudio AppDir/usr/bin/OpenCADStudio
|
||||
cp packaging/OpenCADStudio.desktop AppDir/usr/share/applications/io.github.HakanSeven12.OpenCadStudio.desktop
|
||||
rsvg-convert -w 256 -h 256 assets/logo.svg \
|
||||
-o AppDir/usr/share/icons/hicolor/256x256/apps/io.github.HakanSeven12.H7CAD.png
|
||||
-o AppDir/usr/share/icons/hicolor/256x256/apps/io.github.HakanSeven12.OpenCadStudio.png
|
||||
|
||||
- name: Download linuxdeploy
|
||||
run: |
|
||||
@@ -50,18 +50,18 @@ jobs:
|
||||
run: |
|
||||
./linuxdeploy-x86_64.AppImage \
|
||||
--appdir AppDir \
|
||||
--desktop-file AppDir/usr/share/applications/io.github.HakanSeven12.H7CAD.desktop \
|
||||
--icon-file AppDir/usr/share/icons/hicolor/256x256/apps/io.github.HakanSeven12.H7CAD.png \
|
||||
--desktop-file AppDir/usr/share/applications/io.github.HakanSeven12.OpenCadStudio.desktop \
|
||||
--icon-file AppDir/usr/share/icons/hicolor/256x256/apps/io.github.HakanSeven12.OpenCadStudio.png \
|
||||
--output appimage
|
||||
mv H7CAD*.AppImage H7CAD.AppImage
|
||||
mv Open*CAD*Studio*.AppImage OpenCADStudio.AppImage
|
||||
|
||||
- name: Upload AppImage to release
|
||||
if: github.event_name == 'release'
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
mv H7CAD.AppImage H7CAD-${{ github.ref_name }}-linux-x86_64.AppImage
|
||||
gh release upload ${{ github.ref_name }} H7CAD-${{ github.ref_name }}-linux-x86_64.AppImage --clobber --repo ${{ github.repository }}
|
||||
mv OpenCADStudio.AppImage OpenCADStudio-${{ github.ref_name }}-linux-x86_64.AppImage
|
||||
gh release upload ${{ github.ref_name }} OpenCADStudio-${{ github.ref_name }}-linux-x86_64.AppImage --clobber --repo ${{ github.repository }}
|
||||
|
||||
build-windows:
|
||||
runs-on: windows-latest
|
||||
@@ -83,8 +83,8 @@ jobs:
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
mv target/release/H7CAD.exe H7CAD-${{ github.ref_name }}-windows-x86_64.exe
|
||||
gh release upload ${{ github.ref_name }} H7CAD-${{ github.ref_name }}-windows-x86_64.exe --clobber --repo ${{ github.repository }}
|
||||
mv target/release/OpenCADStudio.exe OpenCADStudio-${{ github.ref_name }}-windows-x86_64.exe
|
||||
gh release upload ${{ github.ref_name }} OpenCADStudio-${{ github.ref_name }}-windows-x86_64.exe --clobber --repo ${{ github.repository }}
|
||||
|
||||
build-macos:
|
||||
runs-on: macos-14 # Apple Silicon (arm64) only
|
||||
@@ -110,25 +110,25 @@ jobs:
|
||||
|
||||
- name: Build .icns from SVG
|
||||
run: |
|
||||
mkdir -p H7CAD.iconset
|
||||
mkdir -p OpenCADStudio.iconset
|
||||
# Render all the sizes Apple expects in an .icns.
|
||||
for SIZE in 16 32 64 128 256 512 1024; do
|
||||
rsvg-convert -w $SIZE -h $SIZE assets/logo.svg -o H7CAD.iconset/icon_${SIZE}x${SIZE}.png
|
||||
rsvg-convert -w $SIZE -h $SIZE assets/logo.svg -o OpenCADStudio.iconset/icon_${SIZE}x${SIZE}.png
|
||||
done
|
||||
# @2x retina variants (half-size base name)
|
||||
for BASE in 16 32 128 256 512; do
|
||||
DOUBLE=$((BASE * 2))
|
||||
cp H7CAD.iconset/icon_${DOUBLE}x${DOUBLE}.png H7CAD.iconset/icon_${BASE}x${BASE}@2x.png
|
||||
cp OpenCADStudio.iconset/icon_${DOUBLE}x${DOUBLE}.png OpenCADStudio.iconset/icon_${BASE}x${BASE}@2x.png
|
||||
done
|
||||
iconutil -c icns H7CAD.iconset -o AppIcon.icns
|
||||
iconutil -c icns OpenCADStudio.iconset -o AppIcon.icns
|
||||
|
||||
- name: Assemble .app bundle
|
||||
run: |
|
||||
APP=H7CAD.app
|
||||
APP=OpenCADStudio.app
|
||||
rm -rf "$APP"
|
||||
mkdir -p "$APP/Contents/MacOS" "$APP/Contents/Resources"
|
||||
cp target/aarch64-apple-darwin/release/H7CAD "$APP/Contents/MacOS/H7CAD"
|
||||
chmod +x "$APP/Contents/MacOS/H7CAD"
|
||||
cp target/aarch64-apple-darwin/release/OpenCADStudio "$APP/Contents/MacOS/OpenCADStudio"
|
||||
chmod +x "$APP/Contents/MacOS/OpenCADStudio"
|
||||
cp AppIcon.icns "$APP/Contents/Resources/AppIcon.icns"
|
||||
# Substitute version into Info.plist.
|
||||
VERSION="${{ github.ref_name }}"
|
||||
@@ -139,15 +139,15 @@ jobs:
|
||||
- name: Create .dmg
|
||||
run: |
|
||||
hdiutil create \
|
||||
-volname "H7CAD" \
|
||||
-srcfolder H7CAD.app \
|
||||
-volname "Open CAD Studio" \
|
||||
-srcfolder OpenCADStudio.app \
|
||||
-ov -format UDZO \
|
||||
H7CAD.dmg
|
||||
OpenCADStudio.dmg
|
||||
|
||||
- name: Upload .dmg to release
|
||||
if: github.event_name == 'release'
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
mv H7CAD.dmg H7CAD-${{ github.ref_name }}-macos-arm64.dmg
|
||||
gh release upload ${{ github.ref_name }} H7CAD-${{ github.ref_name }}-macos-arm64.dmg --clobber --repo ${{ github.repository }}
|
||||
mv OpenCADStudio.dmg OpenCADStudio-${{ github.ref_name }}-macos-arm64.dmg
|
||||
gh release upload ${{ github.ref_name }} OpenCADStudio-${{ github.ref_name }}-macos-arm64.dmg --clobber --repo ${{ github.repository }}
|
||||
Reference in new issue
Block a user