Skip to content

Commit

Permalink
add app icon and rename to Mouselock.app (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxrlkn authored Nov 6, 2022
1 parent 23dbf2b commit b76030b
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 13 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ VERSION=$(git tag -l 'v*' --sort=-v:refname | head -1)
agvtool new-version ${VERSION:1}

# build
xcodebuild -quiet -configuration Release -target mouselock
xcodebuild -quiet -configuration Release -target Mouselock

# clean dist
rm -rf dist && mkdir dist

# make dmg from app
hdiutil create -fs HFS+ -srcfolder build/Release/mouselock.app -volname mouselock dist/mouselock.dmg
hdiutil create -fs HFS+ -srcfolder build/Release/Mouselock.app -volname Mouselock dist/Mouselock.dmg

# clean build
rm -r build
30 changes: 19 additions & 11 deletions mouselock.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
0E577D8927BD9D5F002B61CC /* mouselockApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E577D8827BD9D5F002B61CC /* mouselockApp.swift */; };
0E577D8B27BD9D5F002B61CC /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E577D8A27BD9D5F002B61CC /* ContentView.swift */; };
0E8210F227CD81D000DB2E0B /* CGKeyCodeInitializers.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E8210F127CD81D000DB2E0B /* CGKeyCodeInitializers.swift */; };
0E96FDD12917F00500D67A09 /* Media.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0E96FDD02917F00500D67A09 /* Media.xcassets */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
0E577D8527BD9D5F002B61CC /* mouselock.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = mouselock.app; sourceTree = BUILT_PRODUCTS_DIR; };
0E577D8527BD9D5F002B61CC /* Mouselock.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Mouselock.app; sourceTree = BUILT_PRODUCTS_DIR; };
0E577D8827BD9D5F002B61CC /* mouselockApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = mouselockApp.swift; sourceTree = "<group>"; };
0E577D8A27BD9D5F002B61CC /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
0E8210F127CD81D000DB2E0B /* CGKeyCodeInitializers.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CGKeyCodeInitializers.swift; sourceTree = "<group>"; };
0E96FDD02917F00500D67A09 /* Media.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Media.xcassets; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -41,7 +43,7 @@
0E577D8627BD9D5F002B61CC /* Products */ = {
isa = PBXGroup;
children = (
0E577D8527BD9D5F002B61CC /* mouselock.app */,
0E577D8527BD9D5F002B61CC /* Mouselock.app */,
);
name = Products;
sourceTree = "<group>";
Expand All @@ -52,16 +54,17 @@
0E577D8827BD9D5F002B61CC /* mouselockApp.swift */,
0E577D8A27BD9D5F002B61CC /* ContentView.swift */,
0E8210F127CD81D000DB2E0B /* CGKeyCodeInitializers.swift */,
0E96FDD02917F00500D67A09 /* Media.xcassets */,
);
path = src;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
0E577D8427BD9D5F002B61CC /* mouselock */ = {
0E577D8427BD9D5F002B61CC /* Mouselock */ = {
isa = PBXNativeTarget;
buildConfigurationList = 0E577D9427BD9D60002B61CC /* Build configuration list for PBXNativeTarget "mouselock" */;
buildConfigurationList = 0E577D9427BD9D60002B61CC /* Build configuration list for PBXNativeTarget "Mouselock" */;
buildPhases = (
0E577D8127BD9D5F002B61CC /* Sources */,
0E577D8227BD9D5F002B61CC /* Frameworks */,
Expand All @@ -71,9 +74,9 @@
);
dependencies = (
);
name = mouselock;
name = Mouselock;
productName = mouselock;
productReference = 0E577D8527BD9D5F002B61CC /* mouselock.app */;
productReference = 0E577D8527BD9D5F002B61CC /* Mouselock.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
Expand All @@ -84,7 +87,7 @@
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1320;
LastUpgradeCheck = 1320;
LastUpgradeCheck = 1410;
TargetAttributes = {
0E577D8427BD9D5F002B61CC = {
CreatedOnToolsVersion = 13.2.1;
Expand All @@ -105,7 +108,7 @@
projectDirPath = "";
projectRoot = "";
targets = (
0E577D8427BD9D5F002B61CC /* mouselock */,
0E577D8427BD9D5F002B61CC /* Mouselock */,
);
};
/* End PBXProject section */
Expand All @@ -115,6 +118,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
0E96FDD12917F00500D67A09 /* Media.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -168,6 +172,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
Expand Down Expand Up @@ -229,6 +234,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand Down Expand Up @@ -259,7 +265,8 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 0.0.10;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "";
DEVELOPMENT_TEAM = "";
ENABLE_PREVIEWS = YES;
Expand Down Expand Up @@ -289,7 +296,8 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 0.0.10;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "";
DEVELOPMENT_TEAM = "";
ENABLE_PREVIEWS = YES;
Expand Down Expand Up @@ -320,7 +328,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
0E577D9427BD9D60002B61CC /* Build configuration list for PBXNativeTarget "mouselock" */ = {
0E577D9427BD9D60002B61CC /* Build configuration list for PBXNativeTarget "Mouselock" */ = {
isa = XCConfigurationList;
buildConfigurations = (
0E577D9527BD9D60002B61CC /* Debug */,
Expand Down
59 changes: 59 additions & 0 deletions src/Media.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"images" : [
{
"idiom" : "mac",
"scale" : "1x",
"size" : "16x16"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "16x16"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "32x32"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "32x32"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "128x128"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "128x128"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "256x256"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "256x256"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "512x512"
},
{
"filename" : "icon.png",
"idiom" : "mac",
"scale" : "2x",
"size" : "512x512"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file added src/Media.xcassets/AppIcon.appiconset/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/Media.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

0 comments on commit b76030b

Please sign in to comment.